import { AlertCircle } from 'lucide-react'; import { Button } from '@/components/ui/button'; interface ErrorStateProps { title?: string; message?: string; onRetry?: () => void; } export function ErrorState({ title = 'Something went wrong', message = 'An error occurred. Please try again.', onRetry }: ErrorStateProps) { return (
{message}
{onRetry && ( )}