import { useLayoutEffect, useState } from 'react';
export function useWindowHeight() {
    const [vh, setVh] = useState(() => window.innerHeight);
    useLayoutEffect(() => {
        const onResize = () => setVh(window.innerHeight);
        window.addEventListener('resize', onResize);
        return () => window.removeEventListener('resize', onResize);
    }, []);
    return vh;
}
//# sourceMappingURL=useWindowHeight.js.map