feat: implement new ui

This commit is contained in:
shadcn 2023-06-07 16:17:59 +04:00
parent 4d5af8c62a
commit 6293470332
28 changed files with 1417 additions and 584 deletions

View file

@ -1,18 +1,13 @@
import { type Message } from 'ai-connector'
import { Chat } from './chat'
import { Sidebar } from './sidebar'
import { auth } from '@/auth'
export const runtime = 'edge'
export const preferredRegion = 'home'
export default async function IndexPage() {
const session = await auth()
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 className="h-full overflow-hidden">
<Chat />
</div>
)
}