isDialog
Reactivets
function isDialog(key: string): boolean;Returns a boolean indicating whether the given key belongs to the modalGroups.dialog group.
Example
ts
import {
createModal,
withModalGroups,
modalGroups,
isDialog,
} from "@monstermann/signals-modal";
createModal("key", () => {
withModalGroups([modalGroups.popover]);
});
isDialog("key"); // true