'use client' import { AlertCircle, Inbox, RotateCcw } from 'lucide-react' import { useEffect, useRef, type ReactNode } from 'react' import { Button } from '@/app/components/ui/button' import { Skeleton } from '@/app/components/ui/skeleton' import { cn } from '@/app/lib/utils' import { useT } from '@/app/lib/i18n/MessagesProvider' /** * The four required data states from DASHBOARD-STANDARD.md §8. Every data-bound * view uses these rather than inventing its own copy. */ export function EmptyState({ title, action, icon, className, }: { title: string /** The corrective action — "No data" without a way forward is not acceptable. */ action?: ReactNode icon?: ReactNode className?: string }) { return (
{title}
{action}{message}