import { t } from '../i18n' import type { ReactNode } from 'react' import { cx } from '../lib/utils' /** En-tête de page : titre en gras, moitié blanc / moitié rouge. */ export function PageHeader({ title, accent, subtitle, action }: { title: string; accent?: string; subtitle?: string; action?: ReactNode }) { return (

{title} {accent && {accent}}

{subtitle &&

{subtitle}

}
{action}
) } export function StatTile({ label, value, hint, className }: { label: string; value: ReactNode; hint?: string; className?: string }) { return (
{label}
{value}
{hint &&
{hint}
}
) } /** Titre de section façon Letterboxd : petites capitales grises + filet. */ export function SectionTitle({ children, action }: { children: ReactNode; action?: ReactNode }) { return (

{children}

{action}
) } export function LinkArrow({ onClick, children }: { onClick: () => void; children: ReactNode }) { return ( ) } export function EmptyState({ title, text, action }: { title: string; text?: string; action?: ReactNode }) { return (

{title}

{text &&

{text}

} {action &&
{action}
}
) }