MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / StructuredDiffList

Function StructuredDiffList

src/components/StructuredDiffList.tsx:17–37  ·  view source on GitHub ↗
({ hunks, dim, width, filePath, firstLine, fileContent }: Props)

Source from the content-addressed store, hash-verified

15
16/** Renders a list of diff hunks with ellipsis separators between them. */
17export function StructuredDiffList({ hunks, dim, width, filePath, firstLine, fileContent }: Props): React.ReactNode {
18 return intersperse(
19 hunks.map(hunk => (
20 <Box flexDirection="column" key={hunk.newStart}>
21 <StructuredDiff
22 patch={hunk}
23 dim={dim}
24 width={width}
25 filePath={filePath}
26 firstLine={firstLine}
27 fileContent={fileContent}
28 />
29 </Box>
30 )),
31 i => (
32 <NoSelect fromLeftEdge key={`ellipsis-${i}`}>
33 <Text dimColor>...</Text>
34 </NoSelect>
35 ),
36 );
37}

Callers

nothing calls this directly

Calls 1

intersperseFunction · 0.85

Tested by

no test coverage detected