9 lines
364 B
TypeScript
9 lines
364 B
TypeScript
import { loadChat } from '@util/chat-store';
|
|
import Chat from './chat';
|
|
|
|
export default async function Page(props: { params: Promise<{ id: string }> }) {
|
|
const { id } = await props.params; // get the chat ID from the URL
|
|
const messages = await loadChat(id); // load the chat messages
|
|
return <Chat id={id} initialMessages={messages} />; // display the chat
|
|
}
|