import type { ReactNode } from 'react'; import { Button } from './Button'; import { Dialog } from './Dialog'; export function ConfirmDialog({ open, title, children, confirmLabel = '确认', cancelLabel = '取消', danger = false, onConfirm, onClose, }: { open: boolean; title: string; children: ReactNode; confirmLabel?: string; cancelLabel?: string; danger?: boolean; onConfirm: () => void; onClose: () => void; }) { return ( } > {children} ); }