import React from 'react'; import { AlertTriangle, X } from 'lucide-react'; export default function Modal({ isOpen, title, content, confirmText = '确定', cancelText = '取消', isDanger = false, onConfirm, onCancel }) { if (!isOpen) return null; return (