openhands / src /components /features /settings /upgrade-button.tsx
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
9b906ea verified
Raw History Blame Contribute Delete
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>
);
}