react-hackterm
Version:
Hackable terminal emulator in React
17 lines (14 loc) • 423 B
JavaScript
import React from "react";
import Prefix from "./Prefix";
const Command = (config, command, value) => {
return `<div className="output-shell">
${Prefix(config)}
<span class="command" style="font-family: ${config.font}; font-size: ${
config.text
}px;">${command}</span>
<div style="font-family: ${config.font}; font-size: ${
config.text
}px;">${value}</div>
</div>`;
};
export default Command;