fix: pass down id to append

This commit is contained in:
shadcn 2023-06-15 11:31:03 +04:00
parent fd99ff634f
commit 92309d77ec
4 changed files with 14 additions and 6 deletions

View file

@ -1,16 +1,19 @@
import { nanoid } from '@/lib/utils'
import { Chat } from '@/components/chat'
import { Header } from '@/components/header'
// export const runtime = 'edge'
export const preferredRegion = 'home'
export default async function IndexPage() {
export default function IndexPage() {
const id = nanoid()
return (
<div className="flex min-h-screen flex-col">
{/* @ts-ignore */}
<Header />
<main className="flex-1 bg-muted/50">
<Chat />
<Chat id={id} />
</main>
</div>
)