import { ReactNode } from 'react'; import { cn } from '@/lib/utils'; interface EmptyStateProps { icon: ReactNode; title: string; description?: string; action?: ReactNode; className?: string; } export function EmptyState({ icon, title, description, action, className, }: EmptyStateProps) { return (
{/* 图标容器 */}
{icon}
{/* 标题 */}

{title}

{/* 描述 */} {description && (

{description}

)} {/* 操作按钮区域 */} {action &&
{action}
}
); }