import { useState as s, useEffect as r } from "react";
const e = 768;
function d() {
  const [o, n] = s(!1);
  return r(() => {
    const t = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => {
      n(window.innerWidth < e);
    };
    return t.addEventListener("change", i), n(window.innerWidth < e), () => t.removeEventListener("change", i);
  }, []), o;
}
export {
  d as default
};
//# sourceMappingURL=useIsMobile.js.map
