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

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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:settings',
      order: 99,
      title: $t('page.setting.title'),
      roles: ['super_admin'], // 仅超级管理员可见
    },
    name: 'Setting',
    path: '/setting',
    redirect: '/setting/index',
    children: [
      {
        name: 'SettingIndex',
        path: 'index',
        component: () => import('#/views/setting/index.vue'),
        meta: {
          icon: 'lucide:settings',
          title: $t('page.setting.index'),
        },
      },
    ],
  },
];

export default routes;

