import type { ReactNode } from "react"; import type { ComponentType } from "react"; interface EmptyStateProps { title: string; description: string; action?: ReactNode; icon?: ComponentType<{ className?: string }>; iconColor?: string; } export function EmptyState({ title, description, action, icon: Icon, iconColor = "#00d4ff", }: EmptyStateProps) { return (
{Icon && (
)}

{title}

{description}

{action}
); } export function ErrorState({ title = "Algo deu errado", message, onRetry, }: { title?: string; message: string; onRetry?: () => void; }) { return (
!

{title}

{message}

{onRetry && ( )}
); }