export enum RoutesName {
  login = 'login',
  personal = 'personal',
  projects = 'projects',
  project = 'project',
  projectScenes = 'projectScenes',
  projectMembers = 'projectMembers',
  projectMaterial = 'projectInfos'
}

export const routesPaths = {
  [RoutesName.login]: 'login',
  [RoutesName.personal]: 'personal',
  [RoutesName.projects]: 'projects',

  [RoutesName.project]: 'project/:id',
  [RoutesName.projectScenes]: 'scenes',
  [RoutesName.projectMembers]: 'members',
  [RoutesName.projectMaterial]: 'infos'
}

export const routesMetas = {
  [RoutesName.login]: {
    title: '登录'
  },
  [RoutesName.personal]: {
    title: '个人信息',
    icon: ''
  },
  [RoutesName.projects]: {
    title: '项目管理',
    icon: ''
  },
  [RoutesName.projectScenes]: {
    title: '场景管理'
  },
  [RoutesName.projectMaterial]: {
    title: '项目资料'
  },
  [RoutesName.projectMembers]: {
    title: '成员管理'
  },
  [RoutesName.project]: {
    title: '项目'
  }
}

export type RouteTree = { name: RoutesName; children?: RouteTree[] }

export const routeTrees: RouteTree[] = [
  { name: RoutesName.personal },
  {
    name: RoutesName.projects,
    children: [
      {
        name: RoutesName.project,
        children: [
          { name: RoutesName.projectMaterial },
          { name: RoutesName.projectMembers },
          { name: RoutesName.projectScenes }
        ]
      }
    ]
  }
]
