import { Card, CardContent } from '@/components/ui/Card'; import { TaskStats } from '@/lib/types'; import { useTheme } from '@/contexts/ThemeContext'; import Link from 'next/link'; interface HeaderProps { title?: string; subtitle?: string; stats?: TaskStats; syncing?: boolean; } export function Header({ title = "TowerControl", subtitle = "Task Management", stats, syncing = false }: HeaderProps) { const { theme, toggleTheme } = useTheme(); return ( {/* Titre tech avec glow */} {title} {subtitle} {syncing && '• Synchronisation...'} {/* Navigation */} Kanban Daily Tags Settings {/* Theme Toggle */} {theme === 'dark' ? ( ) : ( )} {/* Stats essentielles - seulement si stats disponibles */} {stats && ( )} ); } interface StatCardProps { label: string; value: number | string; color: 'blue' | 'green' | 'yellow' | 'gray' | 'purple'; } function StatCard({ label, value, color }: StatCardProps) { const textColors = { blue: 'text-[var(--primary)]', green: 'text-[var(--success)]', yellow: 'text-[var(--accent)]', gray: 'text-[var(--muted-foreground)]', purple: 'text-[var(--accent)]' }; return ( {label} {value} ); }
{subtitle} {syncing && '• Synchronisation...'}