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

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

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

export default routes;

