diff --git a/apps/docs/components/docs-chat/DocsChat.tsx b/apps/docs/components/docs-chat/DocsChat.tsx index d114c14be..17227f361 100644 --- a/apps/docs/components/docs-chat/DocsChat.tsx +++ b/apps/docs/components/docs-chat/DocsChat.tsx @@ -1,5 +1,6 @@ "use client"; +import { FC } from "react"; import { AssistantModal, ChatModelAdapter, @@ -9,6 +10,7 @@ import { makeMarkdownText } from "@assistant-ui/react-markdown"; import { makePrismAsyncSyntaxHighlighter } from "@assistant-ui/react-syntax-highlighter"; import { coldarkDark } from "react-syntax-highlighter/dist/esm/styles/prism"; import remarkGfm from "remark-gfm"; +import { Thread, type ThreadConfig } from "@assistant-ui/react"; function asAsyncIterable(source: ReadableStream): AsyncIterable { return { @@ -75,7 +77,7 @@ export const DocsChat = () => { const runtime = useLocalRuntime(MyCustomAdapter); return ( - { /> ); }; + +const MyAssistantModal: FC = (config) => { + return ( + + + + + + + ); +};