import type { LucideIcon } from 'lucide-react'; import { classNames } from '../../lib/utils'; /** Props for {@link EmptyState}. */ interface EmptyStateProps { icon: LucideIcon; title: string; description: string; /** The icon's tint: quiet grey, or green for "nothing wrong here". */ tone?: 'muted' | 'success'; } const ICON_WELL: Record, string> = { muted: 'bg-muted/40', success: 'bg-emerald-500/10', }; const ICON_CLASS: Record, string> = { muted: 'text-text-muted', success: 'text-status-success-fg dark:text-emerald-300', }; /** A dashed well saying a list has nothing in it yet, and why that is fine. */ function EmptyState({ icon: Icon, title, description, tone = 'muted', }: EmptyStateProps): JSX.Element { return (

{title}

{description}

); } export default EmptyState;