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

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

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

export default routes;

