import type { ReactNode } from 'react' import { cx } from '../lib/utils' /** En-tête de page : titre en gras. La partie « accent » n'est colorée que pour le logo (wordmark). */ export function PageHeader({ title, accent, subtitle, action, wordmark }: { title: string; accent?: string; subtitle?: string; action?: ReactNode; wordmark?: boolean }) { return (

{title} {accent && {accent}}

{subtitle &&

{subtitle}

}
{action}
) } /** Titre de section : texte simple souligné d'un filet noir (style « Encre »). */ export function SectionTitle({ children, action }: { children: ReactNode; action?: ReactNode }) { return (

{children}

{action}
) } /** * Progression en pellicule : une image par épisode (regroupées au-delà de 40), perforations en haut et en bas. * La pellicule reste sombre dans tous les thèmes ; les images vues prennent l'accent. */ export function FilmStrip({ done, total, label, className }: { done: number; total: number; label?: string; className?: string }) { if (!total) return null const frames = Math.min(total, 40) const lit = Math.round((Math.min(done, total) / total) * frames) return (
{Array.from({ length: frames }, (_, k) => ( ))}
) } 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}
}
) }