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

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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:workflow',
      order: 5,
      title: $t('page.workflow.title'),
    },
    name: 'Workflow',
    path: '/workflow',
    children: [
      {
        name: 'ProcessDesign',
        path: '/workflow/process-design',
        component: () => import('#/views/workflow/process-design/index.vue'),
        meta: {
          icon: 'lucide:pen-tool',
          title: $t('page.workflow.processDesign'),
        },
      },
      {
        name: 'VueFlowTest',
        path: '/workflow/vue-flow-test',
        component: () => import('#/views/workflow/vue-flow-test/index.vue'),
        meta: {
          icon: 'lucide:test-tube',
          title: 'Vue Flow 测试',
        },
      },
      {
        name: 'VueFlowDesign',
        path: '/workflow/vue-flow-design',
        component: () => import('#/views/workflow/vue-flow-design/index.vue'),
        meta: {
          icon: 'lucide:git-branch',
          title: $t('page.workflow.vueFlowDesign'),
        },
      },
    ],
  },
];

export default routes;

