+ {steps.slice(0, mounted ? displayedSteps : steps.length).map((step, i) => (
+
+
0 ? ' cp-prompt--next' : ''}`}>
+ >
+ {step.command}
+
+ {formattedResponses[i] && (
+
+ {highlightJson(formattedResponses[i])}
+
+ )}
+
+ ))}
+
+ {mounted && currentStepIdx < steps.length && (
+
+
0 ? ' cp-prompt--next' : ''}`}>
+ >
+
+ {typedCommand}
+ {phase === 'typing-command' && }
+
+
+ {showCurrentResponse && formattedResponses[currentStepIdx] && (
+
+ {highlightJson(formattedResponses[currentStepIdx])}
+
+ )}
+
+ )}
+
+ {showClearPrompt && (
+
+ >
+
+ {typedClear}
+ {phase === 'typing-clear' && }
+
+
+ )}
+