Spaces:
Configuration error
Configuration error
Download frontend/src/components/features/chat/chat-suggestions.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/chat/chat-suggestions.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/features/chat/chat-suggestions.tsx
-
curl -L -o chat-suggestions.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/chat/chat-suggestions.tsx
1.11 kB
| import { useTranslation } from "react-i18next"; | |
| import { Suggestions } from "#/components/features/suggestions/suggestions"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| import BuildIt from "#/icons/build-it.svg?react"; | |
| import { SUGGESTIONS } from "#/utils/suggestions"; | |
| interface ChatSuggestionsProps { | |
| onSuggestionsClick: (value: string) => void; | |
| } | |
| export function ChatSuggestions({ onSuggestionsClick }: ChatSuggestionsProps) { | |
| const { t } = useTranslation(); | |
| return ( | |
| <div className="flex flex-col gap-6 h-full px-4 items-center justify-center"> | |
| <div className="flex flex-col items-center p-4 bg-tertiary rounded-xl w-full"> | |
| <BuildIt width={45} height={54} /> | |
| <span className="font-semibold text-[20px] leading-6 -tracking-[0.01em] gap-1"> | |
| {t(I18nKey.LANDING$TITLE)} | |
| </span> | |
| </div> | |
| <Suggestions | |
| suggestions={Object.entries(SUGGESTIONS.repo) | |
| .slice(0, 4) | |
| .map(([label, value]) => ({ | |
| label, | |
| value, | |
| }))} | |
| onSuggestionClick={onSuggestionsClick} | |
| /> | |
| </div> | |
| ); | |
| } | |