MCPcopy Create free account
hub / github.com/codeaashu/claude-code / MainLine

Function MainLine

src/components/CoordinatorAgentStatus.tsx:92–135  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

90 return s.tasks;
91}
92function MainLine(t0) {
93 const $ = _c(10);
94 const {
95 isSelected,
96 isViewed,
97 onClick
98 } = t0;
99 const [hover, setHover] = React.useState(false);
100 const prefix = isSelected || hover ? figures.pointer + " " : " ";
101 const bullet = isViewed ? BLACK_CIRCLE : figures.circle;
102 let t1;
103 let t2;
104 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
105 t1 = () => setHover(true);
106 t2 = () => setHover(false);
107 $[0] = t1;
108 $[1] = t2;
109 } else {
110 t1 = $[0];
111 t2 = $[1];
112 }
113 const t3 = !isSelected && !isViewed && !hover;
114 let t4;
115 if ($[2] !== bullet || $[3] !== isViewed || $[4] !== prefix || $[5] !== t3) {
116 t4 = <Text dimColor={t3} bold={isViewed}>{prefix}{bullet} main</Text>;
117 $[2] = bullet;
118 $[3] = isViewed;
119 $[4] = prefix;
120 $[5] = t3;
121 $[6] = t4;
122 } else {
123 t4 = $[6];
124 }
125 let t5;
126 if ($[7] !== onClick || $[8] !== t4) {
127 t5 = <Box onClick={onClick} onMouseEnter={t1} onMouseLeave={t2}>{t4}</Box>;
128 $[7] = onClick;
129 $[8] = t4;
130 $[9] = t5;
131 } else {
132 t5 = $[9];
133 }
134 return t5;
135}
136type AgentLineProps = {
137 task: LocalAgentTaskState;
138 name?: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected