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

import { LAYOUT } from '/@/router/constant';
import locales from '/@/utils/locales';

const dashboard: AppRouteModule = {
  path: '/dashboard',
  name: 'Dashboard',
  component: LAYOUT,
  redirect: '/dashboard/analysis',
  meta: {
    orderNo: 10,
    icon: 'ion:grid-outline',
    title: locales.routes.dashboard,
  },
  children: [
    {
      path: 'analysis',
      name: 'Analysis',
      component: () => import('/@/views/base/analysis/index.vue'),
      meta: {
        // affix: true,
        title: locales.routes.analysis,
      },
    },
    {
      path: 'workbench',
      name: 'Workbench',
      component: () => import('/@/views/base/workbench/index.vue'),
      meta: {
        title: locales.routes.workbench,
      },
    },
  ],
};

export default dashboard;
