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