import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:book-open',
      keepAlive: true,
      title: $t('page.examManage.title'),
    },
    name: 'ExamManage',
    path: '/examManage',
    children: [
      {
        meta: {
          title: $t('page.examManage.examStats'),
        },
        name: 'ExamStats',
        path: 'examStats',
        component: () => import('#/views/examManage/examStats/index.vue'),
      },
      {
        meta: {
          title: $t('page.examManage.myExamPaper'),
        },
        name: 'MyExamPaper',
        path: 'myExamPaper',
        component: () => import('#/views/examManage/myExamPaper/index.vue'),
      },
    ],
  },
];

export default routes;
