wuyiqunLu
feat: add message to ask user login (#36)
58d7e55 unverified
raw
history blame
No virus
428 Bytes
import { getKVChat } from '@/lib/kv/chat';
import { Chat } from '@/components/chat';
import { auth } from '@/auth';
import { Session } from 'next-auth';
interface PageProps {
params: {
id: string;
};
}
export default async function Page({ params }: PageProps) {
const { id: chatId } = params;
const chat = await getKVChat(chatId);
const session = await auth();
return <Chat chat={chat} session={session} />;
}