import { useState as t, useEffect as d } from "react";
function o() {
  const [n, i] = t(window.innerWidth), e = () => {
    i(window.innerWidth);
  };
  return d(() => (window.addEventListener("resize", e), () => {
    window.removeEventListener("resize", e);
  }), []), n;
}
export {
  o as u
};
