chatbot-template/app/page.tsx
2023-06-15 11:31:03 +04:00

20 lines
459 B
TypeScript

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 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>
)
}