import { CaretRightOutlined, CheckOutlined, ClockCircleOutlined } from '@ant-design/icons'; import { GPTVis } from '@antv/gpt-vis'; import { Collapse } from 'antd'; import rehypeRaw from 'rehype-raw'; import remarkGfm from 'remark-gfm'; import markdownComponents from './config'; interface Props { data: { name: string; num: number; status: 'complete' | 'todo'; agent: string; markdown: string; }[]; } function AgentPlans({ data }: Props) { if (!data || !data.length) return null; return ( } items={data.map((item, index) => { return { key: index, label: (
{item.name} - {item.agent} {item.status === 'complete' ? ( ) : ( )}
), children: ( {item.markdown} ), }; })} /> ); } export default AgentPlans;