{"version":3,"file":"StopScroll.BRLlZObm.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/9ajhXMTvNHa3o84QkAph/Xnul1hAdJn3YeKLXdbBc/StopScroll.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function Component(props){const{toggle}=props;useEffect(()=>{if(toggle)document.body.style.overflow=\"hidden\";return()=>{document.body.style.overflow=\"\";};},[!toggle]);return /*#__PURE__*/_jsx(_Fragment,{});}Component.displayName=\"Stop Scroll\";addPropertyControls(Component,{toggle:{type:ControlType.Boolean,title:\"Block Scroll\",description:\"More components at [Framer University](https://frameruni.link/cc).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Component\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StopScroll.map"],"mappings":"iLAKG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,UAAQ,EAA+H,OAAzH,OAAkB,IAAO,SAAS,KAAK,MAAM,SAAS,cAAmB,CAAC,SAAS,KAAK,MAAM,SAAS,EAAG,GAAI,CAAC,CAAC,CAAM,CAAC,EAAsB,EAAKA,EAAU,CAAC,CAAC,CAAE,iBALhK,IAAoD,IAA6B,EAKgF,EAAU,YAAY,cAAc,EAAoB,EAAU,CAAC,OAAO,CAAC,KAAK,EAAY,QAAQ,MAAM,eAAe,YAAY,oEAAoE,CAAC,CAAC"}