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

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

const routes: RouteRecordRaw[] = [
  {
    name: 'StudentList',
    path: '/student/list',
    component: () => import('#/views/student/list.vue'),
    meta: {
      icon: 'lucide:users',
      order: 3,
      title: $t('page.student.title'),
    },
  },
  {
    name: 'StudentDetail',
    path: '/student/detail/:id?',
    component: () => import('#/views/student/detail.vue'),
    meta: {
      hideInMenu: true,
      title: $t('page.student.detail'),
    },
  },
];

export default routes;

