@lanaco/lnc-react-ui
Version:
React component library
14 lines (13 loc) • 359 B
JavaScript
import { useState as i, useEffect as r } from "react";
import { M as o } from "./breakpoints-BubDitvo.js";
const w = () => {
const [t, n] = i(window.innerWidth), e = () => {
n(window.innerWidth);
};
return r(() => (window.addEventListener("resize", e), () => {
window.removeEventListener("resize", e);
}), []), t <= o;
};
export {
w as u
};