Download src/components/empty_state.tsx from IOE-IFAD/test: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/spaces/IOE-IFAD/test/resolve/main/src/components/empty_state.tsx
- Command line
-
hf download hf://spaces/IOE-IFAD/test/src/components/empty_state.tsx
-
curl -L -o empty_state.tsx https://huggingface.co/spaces/IOE-IFAD/test/resolve/main/src/components/empty_state.tsx
470 Bytes
| import { Bot, LucideIcon } from "lucide-react"; | |
| import { FC } from "react"; | |
| interface EmptyStateProps { | |
| message: string; | |
| icon?: LucideIcon; | |
| } | |
| const EmptyState: FC<EmptyStateProps> = ({ message, icon: Icon = Bot }) => ( | |
| <div className="flex flex-col flex-1 items-center justify-center h-full text-center"> | |
| <Icon className="h-12 w-12 text-muted-foreground mb-4" /> | |
| <p className="text-muted-foreground">{message}</p> | |
| </div> | |
| ); | |
| export default EmptyState; | |