import Modal from './Modal' import Button from './Button' interface ConfirmDialogProps { open: boolean title: string message: string confirmLabel?: string cancelLabel?: string variant?: 'danger' | 'primary' onConfirm: () => void onCancel: () => void } /** * 二次确认弹窗组件 * 用于危险操作(删除、归档、批量操作等)的二次确认 */ export default function ConfirmDialog({ open, title, message, confirmLabel = '确认', cancelLabel = '取消', variant = 'danger', onConfirm, onCancel, }: ConfirmDialogProps) { return (

{message}

) }