import { FC, forwardRef } from "react"; import { Ansi } from "./Ansi"; import styles from "./Terminal.module.css"; interface OutputLineProps { text?: string; } export const OutputLine: FC = forwardRef(({ text }: OutputLineProps, ref) => { const lines = text?.split("\n"); return
{lines?.map((line, index) => {line === "" ? " " : line} )}
; }) as FC;