import { NextPage } from "next"; import { MutableRefObject } from "react"; import styles from "../../styles/REPL/REPLHistory.module.css"; interface REPLHistoryParams { history: string[]; inputRef: MutableRefObject; } const REPLHistory: NextPage = ({history, inputRef}) => { const focusInput = () => {if (inputRef.current) inputRef.current.focus();}; return
{ history.map((value, idx) =>
{value === "" ? "\u00A0" : value}
) }
; }; export default REPLHistory;