import { Dialog, DialogContent, DialogDescription } from '@/components/ui/dialog'; import { DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { Ban } from 'lucide-react'; import { useTranslation } from '@/components/locales'; import type { ErrorDialogsProps } from './index'; export const CustomErrorDialog = ({ apiError, setApiError }: ErrorDialogsProps) => { const { t } = useTranslation(); const onOpenChange = (value: boolean) => { if (!value) { setApiError(null); } }; return ( {t('error.server.title')} {apiError?.uuid} {/* The server's own message, shown verbatim — it is a response, not UI copy (see D1). */}

{apiError?.message}

); };