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

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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'clarity:database',
      title: $t('menus.ai.datacenter'),
      hideInMenu: true,
      activePath: '/datacenter',
    },
    name: 'DatacenterWorkspace',
    path: '/datacenter',
    component: () => import('#/views/datacenter/DatacenterWorkspace.vue'),
  },
  {
    meta: {
      icon: 'clarity:database',
      title: $t('menus.ai.datacenter'),
      hideInMenu: true,
      hideInTab: true,
      hideInBreadcrumb: true,
      activePath: '/datacenter',
    },
    name: 'DatacenterSourceAccessLegacy',
    path: '/datacenter/source',
    redirect: '/datacenter',
  },
  {
    meta: {
      icon: 'clarity:database',
      title: $t('menus.ai.datacenter'),
      hideInMenu: true,
      hideInTab: true,
      hideInBreadcrumb: true,
      activePath: '/datacenter',
    },
    name: 'DatacenterDatasetManageLegacy',
    path: '/datacenter/dataset',
    redirect: '/datacenter',
  },
];

export default routes;
