Download src/components/features/home/shared/empty-state.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/home/shared/empty-state.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/home/shared/empty-state.tsx
-
curl -L -o empty-state.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/home/shared/empty-state.tsx
532 Bytes
| import React from "react"; | |
| interface EmptyStateProps { | |
| inputValue: string; | |
| searchMessage?: string; | |
| emptyMessage?: string; | |
| testId?: string; | |
| } | |
| export function EmptyState({ | |
| inputValue, | |
| searchMessage = "No items found", | |
| emptyMessage = "No items available", | |
| testId = "dropdown-empty", | |
| }: EmptyStateProps) { | |
| return ( | |
| <li | |
| className="px-3 py-2 text-[var(--oh-text-secondary)] text-sm rounded-lg mx-0.5 my-0.5" | |
| data-testid={testId} | |
| > | |
| {inputValue ? searchMessage : emptyMessage} | |
| </li> | |
| ); | |
| } | |