import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/layout/routerView/index.vue';
import { t } from '@/hooks/useI18n';

const moduleName = 'dashboard';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/dashboard/welcome',
    name: moduleName,
    component: () => import('@/views/dashboard/welcome/index.vue'),
    meta: {
      title: t('routes.dashboard.dashboard'),
      icon: 'ant-design:dashboard-outlined',
    },
    // children: [
    //   {
    //     path: 'welcome',
    //     name: `${moduleName}-welcome`,
    //     meta: {
    //       title: t('routes.dashboard.workbench'),
    //       icon: 'ant-design:home-filled',
    //     },
    //     component: () => import('@/views/dashboard/welcome/index.vue'),
    //   },
    // ],
  },
];

export default routes;
