Spaces:
Sleeping
Sleeping
import { getKVChat } from '@/lib/kv/chat'; | |
import { Chat } from '@/components/chat'; | |
interface PageProps { | |
params: { | |
id: string; | |
}; | |
} | |
export default async function Page({ params }: PageProps) { | |
const { id: chatId } = params; | |
const chat = await getKVChat(chatId); | |
return <Chat chat={chat} />; | |
} | |