ai-chatbot/components/classic-chat-start.tsx
Your Name dedc62cb79
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
perf: split classic chat from lovart home
2026-04-30 00:22:17 +08:00

32 lines
669 B
TypeScript

import type { UserType } from "@/app/(auth)/auth";
import { Chat } from "@/components/chat";
import { DataStreamHandler } from "@/components/data-stream-handler";
type ClassicChatStartProps = {
id: string;
initialModelId: string;
userType?: UserType;
};
export function ClassicChatStart({
id,
initialModelId,
userType,
}: ClassicChatStartProps) {
return (
<>
<Chat
autoResume={false}
id={id}
initialChatModel={initialModelId}
initialMessages={[]}
initialVisibilityType="private"
isReadonly={false}
key={id}
userType={userType}
/>
<DataStreamHandler />
</>
);
}