2023-06-02 15:33:48 -04:00
|
|
|
import { Chat } from './chat'
|
|
|
|
|
import { Sidebar } from './sidebar'
|
|
|
|
|
import { auth } from '@/auth'
|
2023-05-19 12:33:56 -04:00
|
|
|
|
2023-06-02 15:33:48 -04:00
|
|
|
export const runtime = 'edge'
|
|
|
|
|
export const preferredRegion = 'home'
|
2023-05-19 12:33:56 -04:00
|
|
|
|
|
|
|
|
export default async function IndexPage() {
|
2023-06-02 15:33:48 -04:00
|
|
|
const session = await auth()
|
2023-05-19 12:33:56 -04:00
|
|
|
return (
|
|
|
|
|
<div className="relative flex h-full w-full overflow-hidden">
|
|
|
|
|
<Sidebar session={session} newChat />
|
|
|
|
|
<div className="flex h-full min-w-0 flex-1 flex-col">
|
|
|
|
|
<Chat />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-06-02 15:33:48 -04:00
|
|
|
)
|
2023-05-19 12:33:56 -04:00
|
|
|
}
|