Spaces:
Configuration error
Configuration error
Download frontend/src/components/features/suggestions/suggestions.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/suggestions/suggestions.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/features/suggestions/suggestions.tsx
-
curl -L -o suggestions.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/suggestions/suggestions.tsx
555 Bytes
| import { SuggestionItem, type Suggestion } from "./suggestion-item"; | |
| interface SuggestionsProps { | |
| suggestions: Suggestion[]; | |
| onSuggestionClick: (value: string) => void; | |
| } | |
| export function Suggestions({ | |
| suggestions, | |
| onSuggestionClick, | |
| }: SuggestionsProps) { | |
| return ( | |
| <ul data-testid="suggestions" className="flex flex-col gap-4 w-full"> | |
| {suggestions.map((suggestion, index) => ( | |
| <SuggestionItem | |
| key={index} | |
| suggestion={suggestion} | |
| onClick={onSuggestionClick} | |
| /> | |
| ))} | |
| </ul> | |
| ); | |
| } | |