import React from 'react'; interface ConfirmationModalProps { isOpen: boolean; onClose: () => void; onConfirm: () => void; title: string; message: string; confirmText?: string; cancelText?: string; isDanger?: boolean; } const ConfirmationModal: React.FC = ({ isOpen, onClose, onConfirm, title, message, confirmText = 'Confirm', cancelText = 'Cancel', isDanger = false, }) => { if (!isOpen) return null; return (
{isDanger ? ( ) : ( )}

{message}

); }; export default ConfirmationModal;