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