import { cn } from '@/lib/cn';
/** Honest empty state: when a source/API is unavailable we say so instead of inventing numbers (CLAUDE.md non-negotiable 4). */
export function Unavailable({ what = 'Data', className, compact = false, reason }: { what?: string; className?: string; compact?: boolean; reason?: string }) {
return (
{what} unavailable
{reason && !compact && {reason}}
);
}
/** Inline dash for a missing value inside tables/specs. */
export function Missing({ className }: { className?: string }) {
return (
—
);
}
export function EmptyState({ title, children, className }: { title: string; children?: React.ReactNode; className?: string }) {
return (
{title}
{children &&
{children}
}
);
}