import state from "../../store";
export default function isInternalTeam() {
  var _a, _b;
  const internalTeam = [
    "tech",
    "marketing",
    "franchisee",
    "operations",
    "vision",
    "success",
    "mitigation",
    "finance",
    "design",
  ];
  return ((state === null || state === void 0 ? void 0 : state.session) &&
    (((_a = state === null || state === void 0 ? void 0 : state.claims) === null || _a === void 0 ? void 0 : _a.admin) || internalTeam.includes((_b = state === null || state === void 0 ? void 0 : state.claims) === null || _b === void 0 ? void 0 : _b.role)));
}
