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

Function DiffStatsText

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected