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

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

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:book-open',
      order: 1100,
      title: $t('page.knowledge.title'),
      authority: ['super'],
    },
    name: 'Knowledge',
    path: '/knowledge',
    children: [
      {
        name: 'KnowledgeChat',
        path: '/knowledge/chat',
        component: () => import('#/views/knowledge/chat.vue'),
        meta: {
          affixTab: false,
          icon: 'lucide:message-square-text',
          title: $t('page.knowledge.chat'),
          authority: ['super'],
        },
      },
    ],
  },
];

export default routes;
