import type { AppRouteRecordRaw } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';
import { RoleEnum } from '/@/enums/roleEnum';
import { LAYOUT } from '/@/router/constant';

export const config: AppRouteRecordRaw = {
  path: '/configList',
  name: 'configlist',
  component: LAYOUT,
  redirect: '/configList/index',
  meta: {
    title: t('routes.system.config'),
    icon: 'ph:user-list-duotone',
    orderNo: 10,
    hideChildrenInMenu: true,
    roles: [RoleEnum.SUPER],
  },
  children: [
    {
      path: 'index',
      name: 'configIndex',
      component: () => import('/@/views/config/index.vue'),
      meta: {
        title: t('routes.system.config'),
      },
    },
  ],
};
export default config;
