Spaces:
Running
Running
| import { Inbox } from "lucide-react"; | |
| import { cn } from "@/lib/utils"; | |
| export function EmptyState({ | |
| title = "Nothing here yet", | |
| description, | |
| action, | |
| className, | |
| }: { | |
| title?: string; | |
| description?: string; | |
| action?: React.ReactNode; | |
| className?: string; | |
| }) { | |
| return ( | |
| <div | |
| className={cn( | |
| "flex flex-col items-center justify-center rounded-xl border border-dashed border-border/70 bg-card/40 p-10 text-center", | |
| className, | |
| )} | |
| role="status" | |
| > | |
| <Inbox className="mb-3 h-8 w-8 text-muted-foreground" aria-hidden /> | |
| <h3 className="text-sm font-semibold">{title}</h3> | |
| {description && ( | |
| <p className="mt-1 max-w-sm text-xs text-muted-foreground">{description}</p> | |
| )} | |
| {action && <div className="mt-4">{action}</div>} | |
| </div> | |
| ); | |
| } | |