import{useState as e,useEffect as i}from"react";import{debounce as n}from"../common/helpers.js";let r=()=>{let[r,t]=e(null),[o,d]=e(null),w=n(()=>{t(window.innerHeight),d(window.innerWidth)},200);return i(()=>(w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)}),[w]),{height:r,width:o}};export{r as default};
