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