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

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

const routes: RouteRecordRaw[] = [
  {
    name: 'ClassList',
    path: '/class/list',
    component: () => import('#/views/class/list.vue'),
    meta: {
      icon: 'lucide:graduation-cap',
      order: 4,
      title: $t('page.class.title'),
    },
  },
  {
    name: 'ClassDetail',
    path: '/class/detail/:id?',
    component: () => import('#/views/class/detail.vue'),
    meta: {
      hideInMenu: true,
      title: $t('page.class.detail'),
    },
  },
];

export default routes;

