import { PAGE_STATUS as e } from "./constants.js";
import { getMetaApi as l, META_SERVICE as a, useResource as c } from "@opentiny/tiny-engine-meta-register";
const S = (s) => {
  const r = l(a.GlobalService).getState();
  let o = c().appSchemaState.isDemo;
  const { resetPasswordToken: i } = r.userInfo;
  o && [e.Developer, e.SuperAdmin].includes(i) && (o = !1);
  let t = "";
  return o ? t = e.Guest : s ? t = r.userInfo.id === s.id ? e.Occupy : e.Lock : t = e.Release, {
    state: t,
    data: s
  };
};
export {
  S as getCanvasStatus
};
//# sourceMappingURL=canvas.js.map
