({
hunks,
dim,
width,
filePath,
firstLine,
fileContent
}: Props)
| 14 | |
| 15 | /** Renders a list of diff hunks with ellipsis separators between them. */ |
| 16 | export 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 | } |
nothing calls this directly
no test coverage detected