import type { ReactNode } from 'react'; export interface EmptyProps { title: string; /** One sentence saying what would fill this, or what to change. */ detail?: string; action?: ReactNode; className?: string; } export function Empty({ title, detail, action, className }: EmptyProps) { return (
{title}
{detail !== undefined &&{detail}
} {action !== undefined &&