import type { RouteRecordRaw } from 'vue-router';

import { LayoutA } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    name: 'JumpToEnterprise',
    path: '/jumpToEnterprise',
    component: () => import('#/views/external/jump-to-enterprise.vue'),
    meta: {
      hideInMenu: true,
      hideInTab: true,
      title: $t('dashboard.jumpToEnterprise'),
    },
  },
  {
    name: 'ApplicationManagement',
    path: '/application-management',
    component: () =>
      import('#/views/dashboard/application-management/index.vue'),
    meta: {
      icon: 'carbon:application',
      title: $t('dashboard.applicationManagement'),
    },
  },
  {
    component: LayoutA,
    meta: {
      icon: 'lucide:layout-dashboard',
      order: -1,
      title: $t('dashboard.title'),
    },
    name: 'Dashboard',
    path: '/',
    children: [
      {
        name: 'Home',
        path: '/home',
        component: () => import('#/views/dashboard/home/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: $t('dashboard.home'),
        },
      },
    ],
  },
];

export default routes;
