import { motion, AnimatePresence } from 'framer-motion'; import { AlertTriangle } from 'lucide-react'; import { useLang } from '../lib/i18n'; interface ConfirmModalProps { open: boolean; title?: string; message: string; confirmText?: string; cancelText?: string; danger?: boolean; onConfirm: () => void; onCancel: () => void; } export default function ConfirmModal({ open, title, message, confirmText, cancelText, danger = true, onConfirm, onCancel, }: ConfirmModalProps) { const { t } = useLang(); return ( {open && ( { if (e.target === e.currentTarget) onCancel(); }} >
{title && (

{title}

)}

{message}

)} ); }