import{r as i}from"./redux-1.0.74-D8bIc6ki.js";const a=()=>{const n=()=>window.innerHeight*.01,[r,s]=i.useState(n());return i.useEffect(()=>{let t;const e=()=>{clearTimeout(t),t=window.setTimeout(()=>{const o=n();s(o),document.documentElement.style.setProperty("--ppViewHeight",`${o}px`)},100)};return e(),window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{clearTimeout(t),window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[]),r};export{a as u};
