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

30 lines
825 B
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: db07b9193e596e07.6cf4226df2.js
* Module id: 781363
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(462214),
r = e.i(358379),
n = e.i(284309),
s = e.i(216257);
let l = ["/canvas/share"];
function i({ children: e }) {
let i = (0, s.useUserStore)((e) => e.isLogin),
a = (0, n.useRouter)(),
o = (0, n.usePathname)(),
c = l.some((e) => o?.includes(e));
return ((0, r.useEffect)(() => {
i || c || a.replace("/");
}, [i, c, a]),
i || c)
? (0, t.jsx)(t.Fragment, { children: e })
: null;
}
e.s(["CanvasAuthGuard", () => i]);
};
export default moduleFactory;