{lines.slice(0, visibleLines).map((line, i) => {
const isLastCommand = i === visibleLines - 1 && line.type === 'command' && typingCursor;
const lineClasses = [
styles.line,
line.type !== 'command' && line.type !== 'output' && styles[line.type]
].filter(Boolean).join(' ');
return (
{line.type === 'command' && (
<>
{line.prompt || prompt}
{line.content}
>
)}
{line.type !== 'command' && (
{line.content}
)}
);
})}
{showInput && (
)}