import type { ReactNode } from "react"; interface ErrorStateProps { title?: string; message: string; onRetry?: () => void; } export function ErrorState({ title = "Algo deu errado", message, onRetry, }: ErrorStateProps) { return (
!

{title}

{message}

{onRetry && ( )}
); } export function EmptyState({ title, description, action, }: { title: string; description: string; action?: ReactNode; }) { return (

{title}

{description}

{action}
); }