import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
<%_ if (enableTranslation) { _%>
import { t } from '@/hooks/web/useI18n';
<%_ } _%>

const account: AppRouteModule = {
  path: '/account',
  name: 'Account',
  component: LAYOUT,
  redirect: '/account/settings',
  meta: {
    hideChildrenInMenu: true,
    icon: 'simple-icons:about-dot-me',
    title: <% if (enableTranslation) { %>t('routes.dashboard.account')<% } else { %>'t$t('routes.dashboard.account')$t$'<% } %>,
    orderNo: 100000,
    hideMenu: true,
  },
  children: [
    {
      path: 'settings',
      name: 'AboutPage',
      component: () => import('@/views/account/setting/index.vue'),
      meta: {
        title: <% if (enableTranslation) { %>t('routes.dashboard.account')<% } else { %>'t$t('routes.dashboard.account')$t$'<% } %>,
        icon: 'simple-icons:about-dot-me',
        hideMenu: true,
      },
    },
  ],
};

export default account;
