aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/CodeBlock.tsx
diff options
context:
space:
mode:
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;
+