import type { AppRouteModule } from '/@/router/types';
import { RoleEnum } from '/@/enums/roleEnum';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const scenes: AppRouteModule = {
  path: '/archive',
  name: 'Archive',
  component: LAYOUT,
  redirect: '/archive/list',
  meta: {
    icon: 'fluent-mdl2:archive',
    title: t('routes.dashboard.archive'),
    orderNo: 108,
    roles: [RoleEnum.SUPER, RoleEnum.PLAT_ADMIN],
  },
  children: [
    // {
    //   path: 'down',
    //   name: 'ScenesDownload',
    //   component: () => import('/@/views/scenes/download.vue'),
    //   meta: {
    //     title: t('routes.dashboard.scenesDownload'),
    //     icon: 'mdi:box-download',
    //   },
    // },
    {
      path: 'list',
      name: 'ArchiveList',
      component: () => import('/@/views/archive/list.vue'),
      meta: {
        title: t('routes.dashboard.archiveList'),
        icon: 'gravity-ui:chart-bar',
      },
    },
  ],
};

export default scenes;
