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