import type { ElementType, ReactNode } from 'react' type EmptyStateProps = { icon?: ElementType title: string description?: string action?: ReactNode className?: string } export default function EmptyState({ icon: Icon, title, description, action, className = '' }: EmptyStateProps) { return (
{Icon && (
)}

{title}

{description && (

{description}

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