Spaces:
Configuration error
Configuration error
Download frontend/src/components/shared/buttons/settings-button.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/buttons/settings-button.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/shared/buttons/settings-button.tsx
-
curl -L -o settings-button.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/buttons/settings-button.tsx
612 Bytes
| import { useTranslation } from "react-i18next"; | |
| import SettingsIcon from "#/icons/settings.svg?react"; | |
| import { TooltipButton } from "./tooltip-button"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| interface SettingsButtonProps { | |
| onClick?: () => void; | |
| } | |
| export function SettingsButton({ onClick }: SettingsButtonProps) { | |
| const { t } = useTranslation(); | |
| return ( | |
| <TooltipButton | |
| testId="settings-button" | |
| tooltip={t(I18nKey.SETTINGS$TITLE)} | |
| ariaLabel={t(I18nKey.SETTINGS$TITLE)} | |
| onClick={onClick} | |
| > | |
| <SettingsIcon width={28} height={28} /> | |
| </TooltipButton> | |
| ); | |
| } | |