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

import Renderer from '#/components/renderer/index.vue';
import { VITE_RENDERER_URL } from '#/constants';
import { router } from '#/router';

const routes: RouteRecordRaw[] = [
  {
    path: '/static-file',
    name: 'StaticFile',
    meta: {
      icon: 'ant-design:file',
      title: '静态文件管理',
    },
    children: [
      {
        path: '/static-file/list',
        name: 'StaticFileList',
        component: Renderer,
        meta: {
          icon: 'ant-design:file-text',
          title: '静态文件列表',
        },
        props: {
          url: `${VITE_RENDERER_URL}`,
          fileId: '7pfr394d6',
          projectId: 4,
          name: '7pfr394d6',
          getRouter: () => router,
        },
      },
    ],
  },
];

export default routes;
