"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),helpers=require("../common/helpers.js");const useWindowSize=()=>{let[e,t]=React.useState(null),[r,i]=React.useState(null),n=()=>{t(window.innerHeight),i(window.innerWidth)},s=helpers.debounce(n,200);return React.useEffect(()=>(s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}),[s]),{height:e,width:r}};exports.default=useWindowSize;
