import { confirm } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/dialog/index.js";
Displays a dialog with a message, and to wait until the user either confirms or cancels the dialog.
Examples
Example 1
Example 1
import { confirm } from "@ayonli/jsext/dialog";
if (await confirm("Are you sure?")) {
console.log("Confirmed");
} else {
console.log("Canceled");
}