/** * 统一的 EmptyState 组件 * 用于显示空状态 */ import React from "react"; import type { LucideIcon } from "lucide-react"; import { Button } from "../ui/Button"; export interface EmptyStateProps { icon?: LucideIcon; title: string; description?: string; action?: { label: string; onClick: () => void; icon?: LucideIcon; }; } export const EmptyState: React.FC = ({ icon: Icon, title, description, action, }) => { return (
{Icon && }

{title}

{description && (

{description}

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