import { BarChart3 } from 'lucide-react' import type { ComponentType } from 'react' import { cn } from '@/lib/utils' /** * Shared empty-state panel for charts that can't render meaningfully * without a minimum amount of data. Kept minimal and uniform so the * three empty states on the dashboard don't each feel like a * different widget. */ export function EmptyState({ title = 'Not enough data yet', hint, icon: Icon = BarChart3, className, }: { title?: string hint?: string icon?: ComponentType<{ className?: string }> className?: string }) { return (

{title}

{hint &&

{hint}

}
) }