'use client'; import { useState } from 'react'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; import type { Task } from '@/types'; interface Props { task: Task | null; isLoading: boolean; streamingContent: string; } export default function TaskCard({ task, isLoading, streamingContent }: Props) { const [collapsed, setCollapsed] = useState(false); if (!isLoading && !task) return null; return (
{streamingContent}
) : ( <> > )}{children}
, ul: ({ children }) =>
{children}
),
}}
>
{task.description}
Hints