MCPcopy Index your code
hub / github.com/codeaashu/claude-code / TeamDetailView

Function TeamDetailView

src/components/teams/TeamsDialog.tsx:243–293  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

241 onCancel: () => void;
242};
243function TeamDetailView(t0) {
244 const $ = _c(13);
245 const {
246 teamName,
247 teammates,
248 selectedIndex,
249 onCancel
250 } = t0;
251 const subtitle = `${teammates.length} ${teammates.length === 1 ? "teammate" : "teammates"}`;
252 const supportsHideShow = getCachedBackend()?.supportsHideShow ?? false;
253 const cycleModeShortcut = useShortcutDisplay("confirm:cycleMode", "Confirmation", "shift+tab");
254 const t1 = `Team ${teamName}`;
255 let t2;
256 if ($[0] !== selectedIndex || $[1] !== teammates) {
257 t2 = teammates.length === 0 ? <Text dimColor={true}>No teammates</Text> : <Box flexDirection="column">{teammates.map((teammate, index) => <TeammateListItem key={teammate.agentId} teammate={teammate} isSelected={index === selectedIndex} />)}</Box>;
258 $[0] = selectedIndex;
259 $[1] = teammates;
260 $[2] = t2;
261 } else {
262 t2 = $[2];
263 }
264 let t3;
265 if ($[3] !== onCancel || $[4] !== subtitle || $[5] !== t1 || $[6] !== t2) {
266 t3 = <Dialog title={t1} subtitle={subtitle} onCancel={onCancel} color="background" hideInputGuide={true}>{t2}</Dialog>;
267 $[3] = onCancel;
268 $[4] = subtitle;
269 $[5] = t1;
270 $[6] = t2;
271 $[7] = t3;
272 } else {
273 t3 = $[7];
274 }
275 let t4;
276 if ($[8] !== cycleModeShortcut) {
277 t4 = <Box marginLeft={1}><Text dimColor={true}>{figures.arrowUp}/{figures.arrowDown} select · Enter view · k kill · s shutdown · p prune idle{supportsHideShow && " \xB7 h hide/show \xB7 H hide/show all"}{" \xB7 "}{cycleModeShortcut} sync cycle modes for all · Esc close</Text></Box>;
278 $[8] = cycleModeShortcut;
279 $[9] = t4;
280 } else {
281 t4 = $[9];
282 }
283 let t5;
284 if ($[10] !== t3 || $[11] !== t4) {
285 t5 = <>{t3}{t4}</>;
286 $[10] = t3;
287 $[11] = t4;
288 $[12] = t5;
289 } else {
290 t5 = $[12];
291 }
292 return t5;
293}
294type TeammateListItemProps = {
295 teammate: TeammateStatus;
296 isSelected: boolean;

Callers

nothing calls this directly

Calls 2

getCachedBackendFunction · 0.85
useShortcutDisplayFunction · 0.85

Tested by

no test coverage detected