/** * Error state for file read failures (EACCES, ENOENT, etc.). */ import { useAppTranslation } from '@features/localization/renderer'; import { Button } from '@renderer/components/ui/button'; import { AlertTriangle } from 'lucide-react'; interface EditorErrorStateProps { error: string; onRetry?: () => void; onClose?: () => void; } export const EditorErrorState = ({ error, onRetry, onClose, }: EditorErrorStateProps): React.ReactElement => { const { t } = useAppTranslation('team'); return (
{error}