Spaces:
Running
Running
Download src/components/EmptyState.tsx from zai-org/OpenVuln: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/zai-org/OpenVuln/resolve/main/src/components/EmptyState.tsx
- Command line
-
hf download hf://spaces/zai-org/OpenVuln/src/components/EmptyState.tsx
-
curl -L -o EmptyState.tsx https://huggingface.co/spaces/zai-org/OpenVuln/resolve/main/src/components/EmptyState.tsx
683 Bytes
| import type { LucideIcon } from "lucide-react"; | |
| import type { ReactNode } from "react"; | |
| export function EmptyState({ | |
| icon: Icon, | |
| title, | |
| description, | |
| action, | |
| }: { | |
| icon: LucideIcon; | |
| title: string; | |
| description?: string; | |
| action?: ReactNode; | |
| }) { | |
| return ( | |
| <div className="flex flex-col items-center justify-center gap-3 px-6 py-16 text-center"> | |
| <Icon size={32} className="text-ink-tertiary" strokeWidth={1.5} /> | |
| <div> | |
| <p className="text-sm font-medium text-ink">{title}</p> | |
| {description && ( | |
| <p className="mt-1 max-w-sm text-[13px] text-ink-secondary">{description}</p> | |
| )} | |
| </div> | |
| {action} | |
| </div> | |
| ); | |
| } | |