import React from 'react'; import { Button } from './Button'; import { AlertCircle, Trash2 } from 'lucide-react'; interface ConfirmModalProps { isOpen: boolean; onClose: () => void; onConfirm: () => void; title: string; message: string; confirmText?: string; cancelText?: string; isDestructive?: boolean; } export const ConfirmModal: React.FC = ({ isOpen, onClose, onConfirm, title, message, confirmText = 'Aceptar', cancelText = 'Cancelar', isDestructive = false }) => { if (!isOpen) return null; return ( <>
{isDestructive ? (
) : (
)}

{title}

{message}

); };