MCPcopy Create free account
hub / github.com/WJX20/claude-code / StructuredDiffList

Function StructuredDiffList

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

intersperseFunction · 0.85

Tested by

no test coverage detected