import React from 'react'; interface ConfirmModalProps { isOpen: boolean; title?: string; message: React.ReactNode; confirmText?: string; cancelText?: string; confirmButtonClass?: string; onConfirm: () => void; onCancel: () => void; isLoading?: boolean; } const ConfirmModal: React.FC = ({ isOpen, title = 'Xác nhận', message, confirmText = 'Xác nhận', cancelText = 'Huỷ', confirmButtonClass = 'bg-rose-600 hover:bg-rose-700', onConfirm, onCancel, isLoading = false, }) => { if (!isOpen) return null; return (
{/* Header */}

{title}

{/* Content */}
{message}
{/* Footer */}
); }; export default ConfirmModal;