import type { WidgetTranslations } from '../i18n'; interface ErrorViewProps { message: string; canRetry: boolean; onUseAnotherPhoto: () => void; onRetry: () => void; onClose: () => void; t: WidgetTranslations['error']; } export function ErrorView({ message, canRetry, onUseAnotherPhoto, onRetry, onClose, t }: ErrorViewProps) { return (

{t.title}

{message}

{t.suggestions}

{canRetry && }
); }