"use client"; import { X } from "lucide-react"; /** * 站点风格确认框:仅取消/关闭可关,避免点遮罩误关。 * danger 主按钮使用 btn-danger,其余用 btn-accent。 */ export default function ConfirmDialog({ open, title, message, confirmLabel = "确定", cancelLabel = "取消", danger = false, busy = false, onConfirm, onCancel, }: { open: boolean; title: string; message: string; confirmLabel?: string; cancelLabel?: string; danger?: boolean; busy?: boolean; onConfirm: () => void; onCancel: () => void; }) { if (!open) return null; return (
e.stopPropagation()} >

{title}

{message}

); }