fix: update layouts for chat pages

This commit is contained in:
shadcn 2023-06-15 16:07:03 +04:00
parent 8cf847f7bc
commit 3fd1859005
3 changed files with 10 additions and 23 deletions

View file

@ -1,6 +1,5 @@
import { nanoid } from '@/lib/utils'
import { Chat } from '@/components/chat'
import { Header } from '@/components/header'
// export const runtime = 'edge'
export const preferredRegion = 'home'
@ -8,13 +7,5 @@ export const preferredRegion = 'home'
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 id={id} />
</main>
</div>
)
return <Chat id={id} />
}