"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useWindowHeight = useWindowHeight;
const react_1 = require("react");
function useWindowHeight() {
    const [vh, setVh] = (0, react_1.useState)(() => window.innerHeight);
    (0, react_1.useLayoutEffect)(() => {
        const onResize = () => setVh(window.innerHeight);
        window.addEventListener('resize', onResize);
        return () => window.removeEventListener('resize', onResize);
    }, []);
    return vh;
}
//# sourceMappingURL=useWindowHeight.js.map