import { HeaderMenus, LoginedPaths } from "./types";

export const HEADER_MENUS_ACCOUNT = "Account";
export const HEADER_MENUS_USER = "User";
export const HEADER_MENUS_LICENSE = "License";
export const HEADER_MENUS_DICTATIONS = "Dictations";
export const HEADER_MENUS_WORKFLOW = "Workflow";
export const HEADER_MENUS_PARTNER = "Partners";
export const HEADER_MENUS_XXX = "XXX"; // XXX 仮のタブ

export const HEADER_MENUS: { label: HeaderMenus; path: LoginedPaths }[] = [
  { label: HEADER_MENUS_ACCOUNT, path: "/account" },
  { label: HEADER_MENUS_DICTATIONS, path: "/dictations" },
  { label: HEADER_MENUS_LICENSE, path: "/license" },
  { label: HEADER_MENUS_USER, path: "/user" },
  { label: HEADER_MENUS_WORKFLOW, path: "/workflow" },
  { label: HEADER_MENUS_PARTNER, path: "/partners" },
  { label: HEADER_MENUS_XXX, path: "/xxx" }, // XXX 仮のタブ
];

export const HEADER_NAME = "ODMS Cloud";

/**
 * adminのみに表示するヘッダータブ
 */
export const ADMIN_ONLY_TABS = [
  HEADER_MENUS_LICENSE,
  HEADER_MENUS_USER,
  HEADER_MENUS_PARTNER,
];

/**
 * 第1~4階層のみに表示するヘッダータブ
 */
export const TIER1_TO_TIER4_ONLY_TABS = [HEADER_MENUS_PARTNER];

/**
 * admin,standardでなく、第1～5階層でもないアカウントに表示する空のヘッダータブ
 */
export const INVALID_ACCOUNT_TABS = [];
