import { IconArrowDownCircleLine } from '@halo-dev/components';
import { definePlugin } from '@halo-dev/ui-shared';
import { markRaw } from 'vue';

export default definePlugin({
  components: {},
  routes: [
    {
      parentName: 'Root',
      route: {
        path: '/download-manager',
        name: 'DownloadManager',
        component: () => import('@/views/DownloadManager.vue'),
        meta: {
          title: '下载管理',
          permissions: ['plugin:sharelink:view'],
          menu: {
            name: '下载管理',
            group: 'content',
            icon: markRaw(IconArrowDownCircleLine),
            priority: 52,
          },
        },
      },
    },
  ],
  extensionPoints: {},
});
