"use client"; import type { LucideIcon } from "lucide-react"; interface PageHeaderProps { title: string; subtitle?: string; icon?: LucideIcon; /** Classe de teinte de l'icône, ex. "text-amber-500 bg-amber-500/10" */ tone?: string; actions?: React.ReactNode; className?: string; /** Style compact (barre d'explorateur) */ compact?: boolean; } /** En-tête de page standard SPB Cloud v3. */ export default function PageHeader({ title, subtitle, icon: Icon, tone = "text-blue-600 bg-blue-500/10 dark:text-blue-300", actions, className = "", compact }: PageHeaderProps) { return (
{Icon && (
)}

{title}

{subtitle &&

{subtitle}

}
{actions &&
{actions}
}
); } export function EmptyState({ icon: Icon, title, description, action }: { icon: LucideIcon; title: string; description?: string; action?: React.ReactNode }) { return (

{title}

{description &&

{description}

} {action &&
{action}
}
); }