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

export const accountRoute: AppRouteRecordRaw = {
  path: '/account',
  name: 'Account',
  redirect: '/account/lists',
  component: LAYOUT,
  meta: {
    title: t('routes.dashboard.account'),
    icon: 'la:file-invoice-dollar',
    orderNo: 190,
  },
  children: [
    {
      path: 'lists',
      name: 'Lists',
      // component: () => import('/@/views/account/details/index.vue'),
      component: () => import('/@/views/account/lists.vue'),
      meta: {
        title: t('routes.dashboard.account'),
        icon:'carbon:user-profile-alt',
        hideChildrenInMenu: true,
      },
    },
    {
      path: 'details',
      name: 'Details',
      component: () => import('/@/views/account/details/index.vue'),
      meta: {
        title: t('routes.dashboard.details'),
        hideChildrenInMenu: true,
        // hideMenu: true,
      },
    },
  ],
};
export default accountRoute;
