import { AlertCircle } from 'lucide-react'; import { Alert, AlertTitle, AlertDescription, Button } from '@/components'; import { cn } from '@/lib/utils/utils'; interface ErrorStateProps { error: Error | string; title?: string; onRetry?: () => void; className?: string; } export function ErrorState({ error, title = 'Something went wrong', onRetry, className, }: ErrorStateProps) { const errorMessage = error instanceof Error ? error.message : error; return ( {title}

{errorMessage}

{onRetry && ( )}
); }