Confirm-destructive variant of Modal.
Confirmation dialog for destructive actions. Title + body + Cancel + Confirm. Confirm button defaults to the destructive variant. Pair with `useDialog()` for imperative one-liners.
import { useDialog } from "@/components/ui/dialog";
const ok = await dialog.confirm({
title: "Delete this workspace?",
body: "All rows + docs will be archived.",
confirmLabel: "Delete",
});components/ui/ folder. You own the code.