import { GitBranch, Folder } from "lucide-react"; import { AgentIcon } from "../AgentIcon"; interface AgentNodeCardProps { selected: boolean; displayColor: string; displayName: string; icon: string; agentId: string; connected: boolean; // The workstream-level state indicator (label + color), computed by the parent. indicator: { label: string; color: string }; cwd?: string; originalCwd?: string; // Mother repo path when using worktrees gitBranch?: string; ticketId?: string; ticketTitle?: string; } export function AgentNodeCard({ selected, displayColor, displayName, icon, agentId, connected, indicator, cwd, originalCwd, gitBranch, ticketId, ticketTitle, }: AgentNodeCardProps) { // agentId is available for future use if needed void agentId; // Extract directory name - use originalCwd (mother repo) if available, otherwise cwd const displayCwd = originalCwd || cwd; const dirName = displayCwd ? displayCwd.split("/").pop() || displayCwd : null; return (
{agentId}
{ticketTitle}
)}