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',
  redirect: '/configlist/index',
  name: 'configlist',
  component: LAYOUT,
  meta: {
    title: t('routes.system.config'),
    icon: 'hugeicons:configuration-01',
    orderNo: 10,
    hideChildrenInMenu: true,
    roles: [RoleEnum.SUPER],
  },
  children: [
    {
      path: 'index',
      name: 'configIndex',
      component: () => import('/@/views/config/index.vue'),
      meta: {
        title: t('routes.system.config'),
        hideMenu: true,
        hideBreadcrumb: true,
      },
    },
  ],
};
export default config;
