MCPcopy Create free account
hub / github.com/codeaashu/claude-code / DiffBody

Function DiffBody

src/components/FileEditToolDiff.tsx:53–80  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

51 return t2;
52}
53function DiffBody(t0) {
54 const $ = _c(6);
55 const {
56 promise,
57 file_path
58 } = t0;
59 const {
60 patch,
61 firstLine,
62 fileContent
63 } = use(promise);
64 const {
65 columns
66 } = useTerminalSize();
67 let t1;
68 if ($[0] !== columns || $[1] !== fileContent || $[2] !== file_path || $[3] !== firstLine || $[4] !== patch) {
69 t1 = <DiffFrame><StructuredDiffList hunks={patch} dim={false} width={columns} filePath={file_path} firstLine={firstLine} fileContent={fileContent} /></DiffFrame>;
70 $[0] = columns;
71 $[1] = fileContent;
72 $[2] = file_path;
73 $[3] = firstLine;
74 $[4] = patch;
75 $[5] = t1;
76 } else {
77 t1 = $[5];
78 }
79 return t1;
80}
81function DiffFrame(t0) {
82 const $ = _c(5);
83 const {

Callers

nothing calls this directly

Calls 1

useTerminalSizeFunction · 0.85

Tested by

no test coverage detected