'use client' import { formatNumber } from '@/lib/utils/format' interface CountriesProps { countries: Array<{ country: string; pageviews: number }> } export default function Countries({ countries }: CountriesProps) { if (countries.length === 0) { return (

Countries

No data available

) } return (

Countries

{countries.map((country, index) => (
{country.country}
{formatNumber(country.pageviews)}
))}
) }