'use client' export interface LabelStatsProps { stats: { artistCount: number songCount: number albumCount: number totalPlays: number } } export function LabelStats({ stats }: LabelStatsProps) { const formatNumber = (num: number) => { if (num >= 1000000) return `${(num / 1000000).toFixed(1)}M` if (num >= 1000) return `${(num / 1000).toFixed(1)}K` return num.toString() } const statItems = [ { label: 'Artists', value: stats.artistCount, icon: ( ) }, { label: 'Songs', value: stats.songCount, icon: ( ) }, { label: 'Albums', value: stats.albumCount, icon: ( ) }, { label: 'Total Plays', value: stats.totalPlays, icon: ( ) } ] return (
{statItems.map((item) => (
{item.icon}

{item.label}

{formatNumber(item.value)}

))}
) }