import * as React from 'react' import { cn } from '../../utils/cn' import { Button, type ButtonProps } from './Button' export interface EmptyStateAction { label: string onClick: () => void variant?: ButtonProps['variant'] } export interface EmptyStateProps extends React.HTMLAttributes { icon?: React.ReactNode title: string description: string action?: EmptyStateAction secondaryAction?: EmptyStateAction } /** * EmptyState - Empty state pattern component * * Features: * - Centered content with dashed border * - Icon in muted background circle * - Primary and secondary action buttons * - Uses Button component for actions */ export function EmptyState({ icon, title, description, action, secondaryAction, className, ...props }: EmptyStateProps) { return (
{icon && (
{icon}
)}

{title}

{description}

{(action || secondaryAction) && (
{action && ( )} {secondaryAction && ( )}
)}
) }