Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

46 lines
1.2 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 9fa62e21c1c207df.60ade64c2b.js
* Module id: 547628
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(358379);
function r(
e,
i,
{ getInitialValueInEffect: a } = { getInitialValueInEffect: !0 },
) {
let [n, s] = (0, t.useState)(
a
? i
: !!("u" > typeof window && "matchMedia" in window) &&
window.matchMedia(e).matches,
);
return (
(0, t.useEffect)(() => {
try {
let r = window.matchMedia(e);
s(r.matches);
var t = (e) => s(e.matches);
try {
return (
r.addEventListener("change", t),
() => r.removeEventListener("change", t)
);
} catch (e) {
return r.addListener(t), () => r.removeListener(t);
}
} catch (e) {
return;
}
}, [e]),
n || !1
);
}
e.s(["useMediaQuery", () => r]);
};
export default moduleFactory;