import { useState } from "react"; import ReactMarkdown from "react-markdown"; import remarkGfm from "remark-gfm"; import rehypeHighlight from "rehype-highlight"; import type { Message } from "../types"; export function ChatMessage({ message }: { message: Message }) { const [showThinking, setShowThinking] = useState(false); const isUser = message.role === "user"; return (
{message.thinking}
)}