import * as React from 'react'; import { cn } from '@/lib/utils'; export interface EmptyStateProps extends React.HTMLAttributes { /** Tiêu đề thông báo */ title: string; /** Mô tả phụ */ description?: string; /** Icon hoặc illustration */ icon?: React.ReactNode; /** CTA tuỳ chọn */ action?: React.ReactNode; } /** * EmptyState — hiển thị khi danh sách/bảng không có dữ liệu. */ export function EmptyState({ title, description, icon, action, className, ...props }: EmptyStateProps) { return (
{icon && (
{icon}
)}

{title}

{description && (

{description}

)}
{action &&
{action}
}
); }