MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / DiffFrame

Function DiffFrame

source code/components/FileEditToolDiff.tsx:83–107  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

81 return t1;
82}
83function DiffFrame(t0) {
84 const $ = _c(5);
85 const {
86 children,
87 placeholder
88 } = t0;
89 let t1;
90 if ($[0] !== children || $[1] !== placeholder) {
91 t1 = placeholder ? <Text dimColor={true}>…</Text> : children;
92 $[0] = children;
93 $[1] = placeholder;
94 $[2] = t1;
95 } else {
96 t1 = $[2];
97 }
98 let t2;
99 if ($[3] !== t1) {
100 t2 = <Box flexDirection="column"><Box borderColor="subtle" borderStyle="dashed" flexDirection="column" borderLeft={false} borderRight={false}>{t1}</Box></Box>;
101 $[3] = t1;
102 $[4] = t2;
103 } else {
104 t2 = $[4];
105 }
106 return t2;
107}
108async function loadDiffData(file_path: string, edits: FileEdit[]): Promise<DiffData> {
109 const valid = edits.filter(e => e.old_string != null && e.new_string != null);
110 const single = valid.length === 1 ? valid[0]! : undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected