import React from 'react'; import { AlertTriangle, RefreshCw } from 'lucide-react'; import { Button } from '@/components/ui/button'; /** * Consistent error state for pages and panels. Shows an icon, title, message, * and optional retry action. * * */ export function ErrorState({ title = 'Something went wrong', message, onRetry, className = '' }) { return (

{title}

{message &&

{message}

} {onRetry && ( )}
); } export default ErrorState;