(props)
| 23 | fileContent: string | undefined; |
| 24 | }; |
| 25 | export function FileEditToolDiff(props) { |
| 26 | const $ = _c(7); |
| 27 | let t0; |
| 28 | if ($[0] !== props.edits || $[1] !== props.file_path) { |
| 29 | t0 = () => loadDiffData(props.file_path, props.edits); |
| 30 | $[0] = props.edits; |
| 31 | $[1] = props.file_path; |
| 32 | $[2] = t0; |
| 33 | } else { |
| 34 | t0 = $[2]; |
| 35 | } |
| 36 | const [dataPromise] = useState(t0); |
| 37 | let t1; |
| 38 | if ($[3] === Symbol.for("react.memo_cache_sentinel")) { |
| 39 | t1 = <DiffFrame placeholder={true} />; |
| 40 | $[3] = t1; |
| 41 | } else { |
| 42 | t1 = $[3]; |
| 43 | } |
| 44 | let t2; |
| 45 | if ($[4] !== dataPromise || $[5] !== props.file_path) { |
| 46 | t2 = <Suspense fallback={t1}><DiffBody promise={dataPromise} file_path={props.file_path} /></Suspense>; |
| 47 | $[4] = dataPromise; |
| 48 | $[5] = props.file_path; |
| 49 | $[6] = t2; |
| 50 | } else { |
| 51 | t2 = $[6]; |
| 52 | } |
| 53 | return t2; |
| 54 | } |
| 55 | function DiffBody(t0) { |
| 56 | const $ = _c(6); |
| 57 | const { |
nothing calls this directly
no test coverage detected