Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

863 B
Raw Blame
import { GitBranch } from 'lucide-react';
import { cn } from '@renderer/utils/utils';

interface BranchDisplayProps {
  label: string;
  branchName: string;
  className?: string;
}

export function BranchDisplay({ label, branchName, className }: BranchDisplayProps) {
  return (
    <div
      className={cn(
        'flex w-full items-center gap-2 justify-between p-2 opacity-60 cursor-not-allowed',
        className
      )}
    >
      <div className="flex flex-col gap-0.5 text-left text-sm">
        <span className="text-xs text-foreground-passive">{label}</span>
        <span className="flex items-center gap-1">
          <GitBranch
            absoluteStrokeWidth
            strokeWidth={2}
            className="size-3.5 shrink-0 text-foreground-muted"
          />
          <span>{branchName}</span>
        </span>
      </div>
    </div>
  );
}