'use client'; import { AlertTriangle } from 'lucide-react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { useI18n } from '@/lib/i18n'; interface DeleteGlossaryDialogProps { open: boolean; onOpenChange: (open: boolean) => void; onConfirm: () => void; isDeleting: boolean; glossaryName?: string; } export function DeleteGlossaryDialog({ open, onOpenChange, onConfirm, isDeleting, glossaryName, }: DeleteGlossaryDialogProps) { const { t } = useI18n(); return ( {t('glossaries.delete.title')} {t('glossaries.delete.description')} {glossaryName && ( "{glossaryName}" )}

{t('glossaries.delete.warning')}

{t('glossaries.delete.warningDesc')}

); }