Spaces:
Running
Running
Download src/components/ui/empty-state.tsx from evalstate/mcp-webcam: direct link, hf CLI and curl.
- Browser
- Download file 779 Bytes
-
https://huggingface.co/spaces/evalstate/mcp-webcam/resolve/main/src/components/ui/empty-state.tsx
- Command line
-
hf download hf://spaces/evalstate/mcp-webcam/src/components/ui/empty-state.tsx
-
curl -L -o empty-state.tsx https://huggingface.co/spaces/evalstate/mcp-webcam/resolve/main/src/components/ui/empty-state.tsx
779 Bytes
| import * as React from 'react'; | |
| import { cn } from '@/lib/utils'; | |
| export function EmptyState({ | |
| icon, | |
| title, | |
| description, | |
| action, | |
| className, | |
| }: { | |
| icon?: React.ReactNode; | |
| title: string; | |
| description?: string; | |
| action?: React.ReactNode; | |
| className?: string; | |
| }) { | |
| return ( | |
| <div | |
| className={cn( | |
| 'flex flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-line px-4 py-7 text-center', | |
| className, | |
| )} | |
| > | |
| {icon && <div className="text-muted-2">{icon}</div>} | |
| <div className="text-xs font-medium text-fg">{title}</div> | |
| {description && <p className="max-w-xs text-[11px] leading-relaxed text-muted">{description}</p>} | |
| {action && <div className="mt-1">{action}</div>} | |
| </div> | |
| ); | |
| } | |