openhands / src /utils /git-control-bar-classes.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
a070805 verified
Raw
History Blame Contribute Delete
690 Bytes
import { cn } from "#/utils/utils";
export const gitControlBarActionButtonBaseClassName =
"flex flex-row gap-1 items-center justify-center rounded-[100px]";
export function gitControlBarActionButtonClassName(isEnabled: boolean) {
return cn(
gitControlBarActionButtonBaseClassName,
isEnabled
? "bg-[var(--oh-surface)] hover:bg-tertiary cursor-pointer text-white"
: "bg-[var(--oh-surface)] cursor-not-allowed opacity-50 text-[var(--oh-muted)]",
);
}
export function gitControlBarActionIconColor(isEnabled: boolean) {
return isEnabled ? "white" : "var(--oh-muted)";
}
export const gitControlBarActionLabelClassName =
"font-normal text-sm leading-5 truncate";