import{useEffect as e}from"react";var o=new class{constructor(){var e,o,s;s=void 0,(o="modals")in(e=this)?Object.defineProperty(e,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[o]=s,this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter((o=>o!==e))}isTopModal(e){return this.modals[this.modals.length-1]===e}};function s(s,t){e((()=>(t&&o.add(s),()=>{o.remove(s)})),[t,s])}export{o as manager,s as useModalManager};
//# sourceMappingURL=modal-manager.js.map
