repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
Projectflow
stars
latest
clone command
git clone gitlawb://did:key:z6Mkfh4Y...QBEi/projectflowgit clone gitlawb://did:key:z6Mkfh4Y.../projectflowb3cded1async from playground1d ago| import type { ReactNode } from "react"; |
| #2 |
| #3 | export function EmptyState({ |
| #4 | icon, |
| #5 | title, |
| #6 | description, |
| #7 | action, |
| #8 | }: { |
| #9 | icon?: ReactNode; |
| #10 | title: string; |
| #11 | description?: string; |
| #12 | action?: ReactNode; |
| #13 | }) { |
| #14 | return ( |
| #15 | <div className="flex flex-col items-center justify-center py-16 text-center"> |
| #16 | {icon && ( |
| #17 | <div className="mb-4 p-3 rounded-xl bg-surface-3 text-zinc-500"> |
| #18 | {icon} |
| #19 | </div> |
| #20 | )} |
| #21 | <h3 className="text-sm font-medium text-zinc-300 mb-1">{title}</h3> |
| #22 | {description && ( |
| #23 | <p className="text-sm text-zinc-500 max-w-sm mb-4">{description}</p> |
| #24 | )} |
| #25 | {action} |
| #26 | </div> |
| #27 | ); |
| #28 | } |
| #29 |