aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/CodeBlock.tsx
diff options
context:
space:
mode:
authorEug-VS <eug-vs@keemail.me>2020-04-04 22:05:40 +0300
committerEug-VS <eug-vs@keemail.me>2020-04-04 22:05:40 +0300
commitbdcc2edb38fb0e57604fa12d25b2a4b478261e18 (patch)
tree71aaedf7f4500cfcab9bd4f344b326dadd71d392 /src/lib/Markdown/CodeBlock.tsx
parent464b5fbef2f58cbcd134b7200c5f7c2f904202a0 (diff)
downloadreact-benzin-bdcc2edb38fb0e57604fa12d25b2a4b478261e18.tar.gz
refactor: structurize Markdown component :recycle:
Diffstat (limited to 'src/lib/Markdown/CodeBlock.tsx')
-rw-r--r--src/lib/Markdown/CodeBlock.tsx13
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;
+