aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/CodeBlock.tsx
blob: 2718647acfb32d5cfcd3c3b2c0a4b28cfb76579c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import React from 'react';
import { ParserPropTypes } from './types';

const CodeBlock: React.FC<ParserPropTypes> = ({ rawLines }) => {
  return (
    <p style={{background: 'rgba(255, 255, 255, .1)', padding: '8px' }}>
      {rawLines.map(line => <> {line} <br/> </>)}
    </p>
  );
}

export default CodeBlock;