import { useId, type ReactNode } from "react"; import { Modal } from "./Modal"; export function ConfirmDialog({ id, open, title, children, busy, wide, cancelLabel = t("取消"), confirmLabel = t("确认"), onCancel, onConfirm }: { id?: string; open: boolean; title: string; children: ReactNode; busy?: boolean; wide?: boolean; cancelLabel?: string; confirmLabel?: string; onCancel: () => void; onConfirm: () => void; }) { const contentId = useId(); return
{children}
; }