2023-06-16 22:43:24 +02:00
|
|
|
import { UseChatHelpers } from 'ai/react'
|
2023-06-14 16:05:03 +04:00
|
|
|
|
2023-06-07 16:17:59 +04:00
|
|
|
import { Button } from '@/components/ui/button'
|
2023-06-11 15:39:04 +04:00
|
|
|
import { ExternalLink } from '@/components/external-link'
|
2023-06-13 16:02:07 +04:00
|
|
|
import { IconArrowRight } from '@/components/ui/icons'
|
2023-06-07 16:17:59 +04:00
|
|
|
|
2024-03-20 04:37:08 +03:00
|
|
|
export function EmptyScreen() {
|
2023-06-07 16:17:59 +04:00
|
|
|
return (
|
2023-06-13 22:16:54 +04:00
|
|
|
<div className="mx-auto max-w-2xl px-4">
|
2024-03-14 20:00:52 +03:00
|
|
|
<div className="flex flex-col gap-2 rounded-lg border bg-background p-8">
|
|
|
|
|
<h1 className="text-lg font-semibold">
|
2023-06-16 18:44:10 -04:00
|
|
|
Welcome to Next.js AI Chatbot!
|
2023-06-13 22:16:54 +04:00
|
|
|
</h1>
|
2024-03-14 20:00:52 +03:00
|
|
|
<p className="leading-normal text-muted-foreground">
|
2023-06-16 19:06:54 -04:00
|
|
|
This is an open source AI chatbot app template built with{' '}
|
2024-03-14 20:00:52 +03:00
|
|
|
<ExternalLink href="https://nextjs.org">Next.js</ExternalLink>, the{' '}
|
|
|
|
|
<ExternalLink href="https://sdk.vercel.ai">
|
|
|
|
|
Vercel AI SDK
|
|
|
|
|
</ExternalLink>
|
|
|
|
|
, and{' '}
|
2023-06-13 22:16:54 +04:00
|
|
|
<ExternalLink href="https://vercel.com/storage/kv">
|
|
|
|
|
Vercel KV
|
|
|
|
|
</ExternalLink>
|
|
|
|
|
.
|
|
|
|
|
</p>
|
|
|
|
|
<p className="leading-normal text-muted-foreground">
|
2024-03-14 20:00:52 +03:00
|
|
|
It uses{' '}
|
|
|
|
|
<ExternalLink href="https://vercel.com/blog/ai-sdk-3-generative-ui">
|
|
|
|
|
React Server Components
|
|
|
|
|
</ExternalLink>{' '}
|
2024-03-19 01:35:03 +03:00
|
|
|
to combine text with generative UI as output of the LLM. The UI state
|
2024-03-14 20:00:52 +03:00
|
|
|
is synced through the SDK so the model is aware of your interactions
|
|
|
|
|
as they happen.
|
2023-06-13 22:16:54 +04:00
|
|
|
</p>
|
2023-06-07 16:17:59 +04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|