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

Function MemoryFileRow

src/components/messages/SystemTextMessage.tsx:669–732  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

667 return <MemoryFileRow key={p} path={p} />;
668}
669function MemoryFileRow(t0) {
670 const $ = _c(16);
671 const {
672 path
673 } = t0;
674 const [hover, setHover] = useState(false);
675 let t1;
676 if ($[0] !== path) {
677 t1 = () => void openPath(path);
678 $[0] = path;
679 $[1] = t1;
680 } else {
681 t1 = $[1];
682 }
683 let t2;
684 let t3;
685 if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
686 t2 = () => setHover(true);
687 t3 = () => setHover(false);
688 $[2] = t2;
689 $[3] = t3;
690 } else {
691 t2 = $[2];
692 t3 = $[3];
693 }
694 const t4 = !hover;
695 let t5;
696 if ($[4] !== path) {
697 t5 = basename(path);
698 $[4] = path;
699 $[5] = t5;
700 } else {
701 t5 = $[5];
702 }
703 let t6;
704 if ($[6] !== path || $[7] !== t5) {
705 t6 = <FilePathLink filePath={path}>{t5}</FilePathLink>;
706 $[6] = path;
707 $[7] = t5;
708 $[8] = t6;
709 } else {
710 t6 = $[8];
711 }
712 let t7;
713 if ($[9] !== hover || $[10] !== t4 || $[11] !== t6) {
714 t7 = <Text dimColor={t4} underline={hover}>{t6}</Text>;
715 $[9] = hover;
716 $[10] = t4;
717 $[11] = t6;
718 $[12] = t7;
719 } else {
720 t7 = $[12];
721 }
722 let t8;
723 if ($[13] !== t1 || $[14] !== t7) {
724 t8 = <MessageResponse><Box onClick={t1} onMouseEnter={t2} onMouseLeave={t3}>{t7}</Box></MessageResponse>;
725 $[13] = t1;
726 $[14] = t7;

Callers

nothing calls this directly

Calls 1

openPathFunction · 0.85

Tested by

no test coverage detected