"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../use-store.js"),o=require("../use-iso-morphic-effect.js"),r=require("./overflow-store.js");exports.useDocumentOverflowLockedEffect=function(s,t){let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),i=e.useStore(r.overflows),c=t?i.get(t):void 0,f=!!c&&c.count>0;return o.useIsoMorphicEffect((()=>{if(t&&s)return r.overflows.dispatch("PUSH",t,u),()=>r.overflows.dispatch("POP",t,u)}),[s,t]),f};
//# sourceMappingURL=use-document-overflow.js.map
