import React from 'react'; import { AlertTriangle, RefreshCw } from 'lucide-react'; import { __ } from '@/lib/i18n'; interface ErrorCardProps { title?: string; message?: string; onRetry?: () => void; } /** * ErrorCard component for displaying page load errors * Use this when a query fails to load data */ export function ErrorCard({ title = __('Failed to load data'), message, onRetry }: ErrorCardProps) { return (
{message}
)} {onRetry && ( )}