import { MineRouteEnum } from '@/enums/routeEnum';

import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';

const mine: AppRouteRecordRaw = {
  path: '/mine',
  name: MineRouteEnum.MINE,
  redirect: '/mine/index',
  component: DEFAULT_LAYOUT,
  meta: {
    permissions: [],
  },
  children: [
    {
      path: 'index',
      name: MineRouteEnum.MINE_INDEX,
      component: () => import('@/views/mine/index.vue'),
      meta: {
        locale: 'menu.mine',
        permissions: [],
        depth: 1,
      },
    },
    {
      path: 'message',
      name: MineRouteEnum.MINE_MESSAGE,
      component: () => import('@/views/mine/message.vue'),
      meta: {
        locale: 'menu.message',
        depth: 2,
      },
    },
    {
      path: 'detail',
      name: MineRouteEnum.MINE_DETAIL,
      component: () => import('@/views/mine/detail.vue'),
      meta: {
        permissions: [],
        depth: 2,
      },
    },
  ],
};

export default mine;
