import type { ReactNode } from 'react'; export interface CardProps { title?: string; /** Right-aligned metadata on the title row: a count, an id, a timestamp. */ meta?: string; children: ReactNode; className?: string; } export function Card({ title, meta, children, className }: CardProps) { return (
{(title || meta) && (
{title &&

{title}

} {meta && {meta}}
)} {children}
); }