import { Card, CardContent } from '@/components/ui/Card'; import { TaskStats } from '@/lib/types'; import Link from 'next/link'; interface HeaderProps { title: string; subtitle: string; stats: TaskStats; syncing?: boolean; } export function Header({ title, subtitle, stats, syncing = false }: HeaderProps) { return (
{/* Titre tech avec glow */}

{title}

{subtitle} {syncing && '• Synchronisation...'}

{/* Navigation */}
{/* Stats tech dashboard */}
{stats.completed > 0 && ( )} {stats.inProgress > 0 && ( )} {stats.todo > 0 && ( )} {stats.freeze > 0 && ( )} {stats.cancelled > 0 && ( )} {stats.archived > 0 && ( )}
); } interface StatCardProps { label: string; value: number | string; color: 'blue' | 'green' | 'yellow' | 'gray' | 'purple'; } function StatCard({ label, value, color }: StatCardProps) { const textColors = { blue: 'text-cyan-300', green: 'text-emerald-300', yellow: 'text-yellow-300', gray: 'text-slate-300', purple: 'text-purple-300' }; return (
{label}
{value}
); }