Spaces:
Configuration error
Configuration error
Download frontend/src/components/shared/buttons/submit-button.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/buttons/submit-button.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/shared/buttons/submit-button.tsx
-
curl -L -o submit-button.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/buttons/submit-button.tsx
662 Bytes
| import { useTranslation } from "react-i18next"; | |
| import ArrowSendIcon from "#/icons/arrow-send.svg?react"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| interface SubmitButtonProps { | |
| isDisabled?: boolean; | |
| onClick: () => void; | |
| } | |
| export function SubmitButton({ isDisabled, onClick }: SubmitButtonProps) { | |
| const { t } = useTranslation(); | |
| return ( | |
| <button | |
| aria-label={t(I18nKey.BUTTON$SEND)} | |
| disabled={isDisabled} | |
| onClick={onClick} | |
| type="submit" | |
| className="border border-white rounded-lg w-6 h-6 hover:bg-neutral-500 focus:bg-neutral-500 flex items-center justify-center" | |
| > | |
| <ArrowSendIcon /> | |
| </button> | |
| ); | |
| } | |