import { TrendingUp, Flame, Target, Award } from 'lucide-react'; import { Statistics as StatsType } from '../types'; interface StatisticsProps { statistics: StatsType; dailyGoal: number; } export function Statistics({ statistics, dailyGoal }: StatisticsProps) { const goalProgress = Math.min((statistics.completedToday / dailyGoal) * 100, 100); const goalReached = statistics.completedToday >= dailyGoal; const stats = [ { label: 'Aujourd\'hui', value: statistics.completedToday, icon: Target, color: 'text-rose-500', bgColor: 'bg-rose-50 dark:bg-rose-900/30', }, { label: 'Total', value: statistics.completedTotal, icon: TrendingUp, color: 'text-indigo-500', bgColor: 'bg-indigo-50 dark:bg-indigo-900/30', }, { label: 'Série actuelle', value: `${statistics.currentStreak} jour${statistics.currentStreak > 1 ? 's' : ''}`, icon: Flame, color: 'text-orange-500', bgColor: 'bg-orange-50 dark:bg-orange-900/30', }, { label: 'Meilleure série', value: `${statistics.bestStreak} jour${statistics.bestStreak > 1 ? 's' : ''}`, icon: Award, color: 'text-amber-500', bgColor: 'bg-amber-50 dark:bg-amber-900/30', }, ]; return (