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

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