import React from 'react'; import { X, AlertTriangle, Trash2, ShieldAlert } from 'lucide-react'; export default function ModalConfirm({ isOpen, onClose, onConfirm, title = 'Confirmar Ação', message, description, confirmText = 'Confirmar', cancelText = 'Cancelar', type = 'warning', // 'warning' | 'danger' icon: CustomIcon }) { if (!isOpen) return null; const isDanger = type === 'danger'; const IconComponent = CustomIcon || (isDanger ? Trash2 : AlertTriangle); return (
e.stopPropagation()} style={{ maxWidth: '460px' }} >

{title}

{message}

{description && (

{description}

)}
); }