import { c } from "react/compiler-runtime";
import * as React$1 from "react";
var MOBILE_BREAKPOINT = 768;
function useIsMobile() {
	let r = c(2), [i, a] = React$1.useState(void 0), o, s;
	return r[0] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
		let e = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`), n = () => {
			a(window.innerWidth < MOBILE_BREAKPOINT);
		};
		return e.addEventListener("change", n), a(window.innerWidth < MOBILE_BREAKPOINT), () => e.removeEventListener("change", n);
	}, s = [], r[0] = o, r[1] = s) : (o = r[0], s = r[1]), React$1.useEffect(o, s), !!i;
}
export { useIsMobile };
