Download src/components/features/suggestions/suggestions.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 563 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/suggestions/suggestions.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/suggestions/suggestions.tsx
-
curl -L -o suggestions.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/suggestions/suggestions.tsx
563 Bytes
| import { SuggestionItem, type Suggestion } from "./suggestion-item"; | |
| interface SuggestionsProps { | |
| suggestions: Suggestion[]; | |
| onSuggestionClick: (value: string) => void; | |
| } | |
| export function Suggestions({ | |
| suggestions, | |
| onSuggestionClick, | |
| }: SuggestionsProps) { | |
| return ( | |
| <div data-testid="suggestions" className="grid grid-cols-2 gap-5 max-w-fit"> | |
| {suggestions.map((suggestion, index) => ( | |
| <SuggestionItem | |
| key={index} | |
| suggestion={suggestion} | |
| onClick={onSuggestionClick} | |
| /> | |
| ))} | |
| </div> | |
| ); | |
| } | |