forked from vercel/ai-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathempty-screen.tsx
38 lines (36 loc) · 1.38 KB
/
empty-screen.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { UseChatHelpers } from 'ai/react'
import { Button } from '@/components/ui/button'
import { ExternalLink } from '@/components/external-link'
import { IconArrowRight } from '@/components/ui/icons'
export function EmptyScreen() {
return (
<div className="mx-auto max-w-2xl px-4">
<div className="flex flex-col gap-2 rounded-lg border bg-background p-8">
<h1 className="text-lg font-semibold">
Welcome to Next.js AI Chatbot!
</h1>
<p className="leading-normal text-muted-foreground">
This is an open source AI chatbot app template built with{' '}
<ExternalLink href="https://nextjs.org">Next.js</ExternalLink>, the{' '}
<ExternalLink href="https://sdk.vercel.ai">
Vercel AI SDK
</ExternalLink>
, and{' '}
<ExternalLink href="https://vercel.com/storage/kv">
Vercel KV
</ExternalLink>
.
</p>
<p className="leading-normal text-muted-foreground">
It uses{' '}
<ExternalLink href="https://vercel.com/blog/ai-sdk-3-generative-ui">
React Server Components
</ExternalLink>{' '}
to combine text with generative UI as output of the LLM. The UI state
is synced through the SDK so the model is aware of your interactions
as they happen.
</p>
</div>
</div>
)
}