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