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