diff options
author | Eug-VS <eug-vs@keemail.me> | 2020-04-04 22:05:40 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2020-04-04 22:05:40 +0300 |
commit | bdcc2edb38fb0e57604fa12d25b2a4b478261e18 (patch) | |
tree | 71aaedf7f4500cfcab9bd4f344b326dadd71d392 /src/lib/Markdown/CodeBlock.tsx | |
parent | 464b5fbef2f58cbcd134b7200c5f7c2f904202a0 (diff) | |
download | react-benzin-bdcc2edb38fb0e57604fa12d25b2a4b478261e18.tar.gz |
refactor: structurize Markdown component :recycle:
Diffstat (limited to 'src/lib/Markdown/CodeBlock.tsx')
-rw-r--r-- | src/lib/Markdown/CodeBlock.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/Markdown/CodeBlock.tsx b/src/lib/Markdown/CodeBlock.tsx new file mode 100644 index 0000000..e449f92 --- /dev/null +++ b/src/lib/Markdown/CodeBlock.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +import { ParserPropTypes } from './types'; + +const CodeBlock: React.FC<ParserPropTypes> = ({ rawLines }) => { + return ( + <p style={{background: '#444444'}}> + {rawLines.map(line => <> {line} <br/> </>)} + </p> + ); +} + +export default CodeBlock; + |