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

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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:user-check',
      order: 5,
      title: $t('page.teacher.title'),
    },
    name: 'Teacher',
    path: '/teacher',
    redirect: '/teacher/list',
    children: [
      {
        name: 'TeacherList',
        path: 'list',
        component: () => import('#/views/teacher/list.vue'),
        meta: {
          icon: 'lucide:list',
          title: $t('page.teacher.list'),
        },
      },
      {
        name: 'TeacherDetail',
        path: 'detail/:id?',
        component: () => import('#/views/teacher/detail.vue'),
        meta: {
          hideInMenu: true,
          title: $t('page.teacher.detail'),
        },
      },
    ],
  },
];

export default routes;

