+ {codeLines.map((line, i) => {
+ const lineNumber = i + 1;
+ const isCurrentLine = lineNumber === currentLine;
+ const isHighlighted = highlightLines.includes(lineNumber);
+
+ return (
+
+
+ {lineNumber}
+
+ {isCurrentLine && (
+
+ →
+
+ )}
+ {!isCurrentLine && (
+
+ )}
+
+ {line || " "}
+
+
+ );
+ })}
+