"use strict";var React=require("react");const useBodyOverlay=e=>{React.useEffect(()=>{let t=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10),d=window.innerWidth-document.documentElement.clientWidth;e?(document.body.style.overflow="hidden",document.body.style.paddingRight=`${t+d}px`):(document.body.style.overflow="",document.body.style.paddingRight="")},[e])};exports.useBodyOverlay=useBodyOverlay;
