welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
17 lines (16 loc) • 501 B
JavaScript
"use client";
import { useState as n } from "react";
import { u as o } from "./use-isomorphic-layout-effect-Izr-e2pi.mjs";
function w() {
const [t, e] = n({ height: void 0, width: void 0 });
return o(() => {
e({ height: window.innerHeight, width: window.innerWidth });
function i() {
e({ height: window.innerHeight, width: window.innerWidth });
}
return window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
}, []), t;
}
export {
w as u
};