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

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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:school',
      order: 1,
      title: $t('page.classroom.title'),
    },
    name: 'Classroom',
    path: '/classroom',
    redirect: '/classroom/list',
    children: [
      {
        name: 'ClassroomList',
        path: 'list',
        component: () => import('#/views/classroom/list.vue'),
        meta: {
          icon: 'lucide:list',
          title: $t('page.classroom.list'),
        },
      },
      {
        name: 'ClassroomDetail',
        path: 'detail/:id?',
        component: () => import('#/views/classroom/detail.vue'),
        meta: {
          hideInMenu: true,
          title: $t('page.classroom.detail'),
        },
      },
    ],
  },
];

export default routes;

