+ {lines.map((line, index) => {
+ const side = line.kind === "deletion" ? "LEFT" : "RIGHT";
+ const lineNumber = side === "RIGHT" ? line.newLine : line.oldLine;
+ const selected = Boolean(
+ lineNumber &&
+ selection?.evidenceId === evidence.id &&
+ (!selection.side || selection.side === side) &&
+ lineNumber >= Math.min(selection.start, selection.end) &&
+ lineNumber <= Math.max(selection.start, selection.end),
+ );
+ return (
+
+ {line.kind === "header" ? (
+ <>{line.content}>
+ ) : (
+ <>
+
+
+ {line.kind === "addition" ? "+" : line.kind === "deletion" ? "−" : ""}
+
+ {highlight(line.content, line.segments)}
+ >
+ )}
+
+ );
+ })}
+
+
+ {!minimal && (
+