MCPcopy Create free account
hub / github.com/Noumena-Network/code / DiffStatsText

Function DiffStatsText

src/components/MessageSelector.tsx:545–579  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

543 return t2;
544}
545function DiffStatsText(t0) {
546 const $ = _c(7);
547 const {
548 diffStats
549 } = t0;
550 if (!diffStats || !diffStats.filesChanged) {
551 return;
552 }
553 let t1;
554 if ($[0] !== diffStats.insertions) {
555 t1 = <Text color="diffAddedWord">+{diffStats.insertions} </Text>;
556 $[0] = diffStats.insertions;
557 $[1] = t1;
558 } else {
559 t1 = $[1];
560 }
561 let t2;
562 if ($[2] !== diffStats.deletions) {
563 t2 = <Text color="diffRemovedWord">-{diffStats.deletions}</Text>;
564 $[2] = diffStats.deletions;
565 $[3] = t2;
566 } else {
567 t2 = $[3];
568 }
569 let t3;
570 if ($[4] !== t1 || $[5] !== t2) {
571 t3 = <>{t1}{t2}</>;
572 $[4] = t1;
573 $[5] = t2;
574 $[6] = t3;
575 } else {
576 t3 = $[6];
577 }
578 return t3;
579}
580function UserMessageOption(t0) {
581 const $ = _c(31);
582 const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected