import type { ReactNode } from 'react'; export interface DossierCardProps { /** The mono kicker above the title: the kind of document this is. */ eyebrow?: string; title: string; /** The file reference, set in mono on the right: a case number, a date, a version. */ reference?: string; /** A `` — the seal on the folder. */ stamp?: ReactNode; children: ReactNode; className?: string; } export function DossierCard({ eyebrow, title, reference, stamp, children, className, }: DossierCardProps) { const aside = reference !== undefined || stamp !== undefined; return (
{eyebrow !== undefined && {eyebrow}}

{title}

{aside && (
{reference !== undefined && {reference}} {stamp}
)}

{children}
); }