fix: update layouts for chat pages
This commit is contained in:
parent
8cf847f7bc
commit
3fd1859005
3 changed files with 10 additions and 23 deletions
|
|
@ -3,7 +3,6 @@ import { auth } from '@clerk/nextjs'
|
|||
|
||||
import { Chat } from '@/components/chat'
|
||||
import { getChat } from '@/app/actions'
|
||||
import { Header } from '@/components/header'
|
||||
|
||||
// export const runtime = 'edge'
|
||||
export const preferredRegion = 'home'
|
||||
|
|
@ -28,13 +27,5 @@ export default async function ChatPage({ params }: ChatPageProps) {
|
|||
const { user } = await auth()
|
||||
const chat = await getChat(params.id, user?.id ?? '')
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col">
|
||||
{/* @ts-ignore */}
|
||||
<Header />
|
||||
<main className="flex-1 bg-muted/50">
|
||||
<Chat id={chat.id} initialMessages={chat.messages} />
|
||||
</main>
|
||||
</div>
|
||||
)
|
||||
return <Chat id={chat.id} initialMessages={chat.messages} />
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue