interface Props { message: string; detail?: string; confirmLabel?: string; isDestructive?: boolean; onConfirm: () => void; onCancel: () => void; } export function ConfirmDialog({ message, detail, confirmLabel = "Confirm", isDestructive = false, onConfirm, onCancel, }: Props) { return (
{ if (e.target === e.currentTarget) onCancel(); }} >

{message}

{detail &&

{detail}

} {!detail &&
}
); }