import { useState } from "react"; import REPLInput from "./REPLInput"; import REPLHistory from "./REPLHistory"; const REPL = () => { const [history, manipulateHistory] = useState([]); const onCommandExecuted = (result: string[]) => manipulateHistory(result.reverse().concat(history).slice(0, 1000)); return (<> ); }; export default REPL;