mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 06:12:14 +08:00
22 lines
544 B
TypeScript
22 lines
544 B
TypeScript
import { useMessage } from "~/core/store";
|
|
import { cn } from "~/lib/utils";
|
|
|
|
import { LoadingAnimation } from "./loading-animation";
|
|
import { Markdown } from "./markdown";
|
|
|
|
export function ResearchReportBlock({
|
|
className,
|
|
messageId,
|
|
}: {
|
|
className?: string;
|
|
messageId: string;
|
|
}) {
|
|
const message = useMessage(messageId);
|
|
return (
|
|
<div className={cn("flex flex-col pb-8", className)}>
|
|
<Markdown animate>{message?.content}</Markdown>
|
|
{message?.isStreaming && <LoadingAnimation className="my-12" />}
|
|
</div>
|
|
);
|
|
}
|