interface StatCardProps { label: string shortLabel: string icon: React.ComponentType<{ size?: number; style?: React.CSSProperties }> color: string total: number | null average: number | null formatValue: (value: number) => string } export default function StatCard({ label, shortLabel, icon: Icon, color, total, average, formatValue }: StatCardProps) { return (
{shortLabel}

Total collecté

{total !== null ? formatValue(total) : '—'}

Moyenne par commune

{average !== null ? formatValue(average) : '—'}

{label}

) }