forked from FlowwStar/FlowStar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathempty-state.tsx
More file actions
33 lines (32 loc) · 1.05 KB
/
Copy pathempty-state.tsx
File metadata and controls
33 lines (32 loc) · 1.05 KB
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
import Link from 'next/link'
import { Waves, Plus } from 'lucide-react'
import { Button } from '@/components/ui/button'
export function EmptyStreams({
title = 'No streams yet',
description = 'Create your first stream to start sending tokens that unlock in real time.',
showCreate = true,
}: {
title?: string
description?: string
showCreate?: boolean
}) {
return (
<div className="flex flex-col items-center justify-center rounded-2xl border border-dashed border-border bg-card/40 px-6 py-16 text-center">
<span className="flex size-12 items-center justify-center rounded-xl bg-secondary text-primary">
<Waves className="size-6" />
</span>
<h3 className="mt-4 font-medium">{title}</h3>
<p className="mt-1 max-w-xs text-sm text-muted-foreground text-pretty">
{description}
</p>
{showCreate && (
<Button asChild className="mt-5 gap-1.5">
<Link href="/app/create">
<Plus className="size-4" />
Create a stream
</Link>
</Button>
)}
</div>
)
}