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

export const Device: AppRouteRecordRaw = {
  path: '/account',
  name: 'Account',
  redirect: '/account/list',
  component: LAYOUT,
  meta: {
    title: t('routes.dashboard.account'),
    icon: 'uil:user-md',
    orderNo: 6,
    hideChildrenInMenu: true,
    // roles: [RoleEnum.SUPER, RoleEnum.TEST],
  },
  children: [
    {
      path: 'details',
      name: 'AccountDetails',
      component: () => import('/@/views/account/details/index.vue'),
      meta: {
        title: t('routes.dashboard.account'),
        hideBreadcrumb: true,
        // roles: [RoleEnum.SUPER, RoleEnum.TEST],
      },
    },
    {
      path: 'list',
      name: 'AccountList',
      component: () => import('/@/views/account/lists.vue'),
      meta: {
        title: t('routes.dashboard.account'),
        hideBreadcrumb: true,
        // roles: [RoleEnum.SUPER, RoleEnum.TEST],
      },
    },
  ],
};
export default Device;
