import{useCallback as e,useEffect as n}from"react";var t=function(t){var r=e((function(e){return e.preventDefault(),e.stopPropagation(),!1}),[]),o=e((function(){(null==t?void 0:t.length)>0&&document.querySelectorAll(t).forEach((function(e){e.addEventListener("wheel",r)}))}),[r,t]),l=e((function(){(null==t?void 0:t.length)>0&&document.querySelectorAll(t).forEach((function(e){e.removeEventListener("wheel",r)}))}),[r,t]);return n((function(){return l}),[l]),{disableScroll:o,enableScroll:l}};export{t as default};
//# sourceMappingURL=useDisableScroll.js.map
