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

Function Item

src/components/tasks/BackgroundTasksDialog.tsx:552–611  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

550 }
551}
552function Item(t0) {
553 const $ = _c(14);
554 const {
555 item,
556 isSelected
557 } = t0;
558 const {
559 columns
560 } = useTerminalSize();
561 const maxActivityWidth = Math.max(30, columns - 26);
562 let t1;
563 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
564 t1 = isCoordinatorMode();
565 $[0] = t1;
566 } else {
567 t1 = $[0];
568 }
569 const useGreyPointer = t1;
570 const t2 = useGreyPointer && isSelected;
571 const t3 = isSelected ? figures.pointer + " " : " ";
572 let t4;
573 if ($[1] !== t2 || $[2] !== t3) {
574 t4 = <Text dimColor={t2}>{t3}</Text>;
575 $[1] = t2;
576 $[2] = t3;
577 $[3] = t4;
578 } else {
579 t4 = $[3];
580 }
581 const t5 = isSelected && !useGreyPointer ? "suggestion" : undefined;
582 let t6;
583 if ($[4] !== item.task || $[5] !== item.type || $[6] !== maxActivityWidth) {
584 t6 = item.type === "leader" ? <Text>@{TEAM_LEAD_NAME}</Text> : <BackgroundTaskComponent task={item.task} maxActivityWidth={maxActivityWidth} />;
585 $[4] = item.task;
586 $[5] = item.type;
587 $[6] = maxActivityWidth;
588 $[7] = t6;
589 } else {
590 t6 = $[7];
591 }
592 let t7;
593 if ($[8] !== t5 || $[9] !== t6) {
594 t7 = <Text color={t5}>{t6}</Text>;
595 $[8] = t5;
596 $[9] = t6;
597 $[10] = t7;
598 } else {
599 t7 = $[10];
600 }
601 let t8;
602 if ($[11] !== t4 || $[12] !== t7) {
603 t8 = <Box flexDirection="row">{t4}{t7}</Box>;
604 $[11] = t4;
605 $[12] = t7;
606 $[13] = t8;
607 } else {
608 t8 = $[13];
609 }

Callers

nothing calls this directly

Calls 3

useTerminalSizeFunction · 0.85
isCoordinatorModeFunction · 0.85
maxMethod · 0.80

Tested by

no test coverage detected