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

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

const routes: RouteRecordRaw[] = [
  {
    name: 'SchoolList',
    path: '/school/list',
    component: () => import('#/views/school/list.vue'),
    meta: {
      icon: 'lucide:building-2',
      order: 7,
      authority: ['super_admin'], // 仅超级管理员可见
      title: $t('page.school.title'),
    },
  },
  {
    name: 'SchoolDetail',
    path: '/school/detail/:id?',
    component: () => import('#/views/school/detail.vue'),
    meta: {
      hideInMenu: true,
      title: $t('page.school.detail'),
    },
  },
];

export default routes;

