import Button from "./Button"; export type ConfirmDialogTone = "default" | "danger"; export type ConfirmDialogProps = { open: boolean; title: string; message: string; confirmLabel?: string; cancelLabel?: string; tone?: ConfirmDialogTone; busy?: boolean; onConfirm: () => void; onCancel: () => void; }; export default function ConfirmDialog({ open, title, message, confirmLabel = "Confirm", cancelLabel = "Cancel", tone = "default", busy = false, onConfirm, onCancel }: ConfirmDialogProps) { if (!open) return null; return (
{message}