import React from 'react'; import { ParserPropTypes } from './types'; import { Paper } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles(theme => ({ root: { background: theme.palette.background.default, padding: theme.spacing(2), overflowX: 'auto', }, })); const CodeBlock: React.FC = ({ rawLines }) => { const classes = useStyles(); return ( {rawLines.map(line => <> {line}
)}
); } export default CodeBlock;