Skip to content

πŸ™Œ OpenHands: AI-Driven Development

642 B
Raw Blame
import { cn } from "#/utils/utils";

interface GitSyncStatusPillProps {
  tone: "success" | "neutral" | "warning";
  label: string;
  testId?: string;
}

export function GitSyncStatusPill({
  tone,
  label,
  testId,
}: GitSyncStatusPillProps) {
  return (
    <span
      data-testid={testId}
      className={cn(
        "inline-flex items-center rounded-full px-3 py-1 text-xs font-medium",
        tone === "success" && "bg-semantic-success/15 text-semantic-success",
        tone === "warning" && "bg-warning/15 text-warning",
        tone === "neutral" && "bg-surface-raised text-muted",
      )}
    >
      {label}
    </span>
  );
}