<script lang="ts" setup>
import type { WorkflowItem } from '@vben/common-ui';

import { useRouter } from 'vue-router';

import { WorkflowsView } from '@vben/common-ui';
import { SvgPPT, SvgSpider, SvgWord } from '@vben/icons';

const items: WorkflowItem[] = [
  {
    icon: SvgSpider,
    title: 'AI平台信息获取',
    description: '自动抓取',
    path: '/ai/spider',
  },
  {
    icon: SvgWord,
    title: 'AI申报书WORD生成',
    description: '自动生成word文档',
    path: '/ai/word',
  },
  {
    icon: SvgPPT,
    title: 'AI申报书PPT生成',
    description: '自动生成PPT文档',
    path: '/ai/ppt',
  },
];
const router = useRouter();

function handleGo(path: string) {
  router.push(path);
}
</script>

<template>
  <div class="p-5">
    <WorkflowsView :items="items" @click="handleGo" />
  </div>
</template>
