Download src/components/features/settings/upgrade-button.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 766 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/settings/upgrade-button.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/settings/upgrade-button.tsx
-
curl -L -o upgrade-button.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/settings/upgrade-button.tsx
766 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| import { cn } from "#/utils/utils"; | |
| interface UpgradeButtonProps { | |
| onClick?: () => void; | |
| className?: string; | |
| isDisabled?: boolean; | |
| } | |
| export function UpgradeButton({ | |
| onClick, | |
| className, | |
| isDisabled, | |
| }: UpgradeButtonProps) { | |
| const { t } = useTranslation("openhands"); | |
| return ( | |
| <button | |
| type="button" | |
| onClick={onClick} | |
| disabled={isDisabled} | |
| className={cn( | |
| "bg-[var(--oh-interactive-selected)] text-white text-[9px] font-normal w-16 h-4 rounded-[100px] mix-blend-multiply hover:opacity-80 transition-opacity cursor-pointer", | |
| className, | |
| )} | |
| > | |
| {t(I18nKey.SETTINGS$UPGRADE_BUTTON)} | |
| </button> | |
| ); | |
| } | |