File size: 766 Bytes
9b906ea | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 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>
);
}
|