import React from 'react'; import { AlertCircle, X } from 'lucide-react'; import { useLanguage } from '../contexts/LanguageContext'; interface ConfirmDialogProps { isOpen: boolean; title?: string; message: string; confirmLabel?: string; cancelLabel?: string; onConfirm: () => void; onCancel: () => void; } const ConfirmDialog: React.FC = ({ isOpen, title, message, confirmLabel, cancelLabel, onConfirm, onCancel, }) => { const { t } = useLanguage(); if (!isOpen) return null; return (

{title || t('confirmTitle') || 'Confirm'}

{message}

); }; export default ConfirmDialog;