From f1f25f4764dd8d297a59765b0df85f55da2b39ee Mon Sep 17 00:00:00 2001
From: flu0r1ne <flu0r1ne@flu0r1ne.net>
Date: Mon, 19 Jul 2021 21:08:50 -0500
Subject: Init

---
 components/Markdown/index.tsx | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 components/Markdown/index.tsx

(limited to 'components/Markdown/index.tsx')

diff --git a/components/Markdown/index.tsx b/components/Markdown/index.tsx
new file mode 100644
index 0000000..4bb6c79
--- /dev/null
+++ b/components/Markdown/index.tsx
@@ -0,0 +1,27 @@
+import React, { FC } from 'react';
+import styles from './markdown.module.scss';
+import clsx from 'clsx';
+
+interface MarkdownProps {
+    md: string;
+    className?: string;
+    props?: object;
+}
+
+const Markdown : FC<MarkdownProps> = ({md, className, ...props}) => (
+    <div
+        className={clsx(styles.markdownContainer, className)}
+        
+        dangerouslySetInnerHTML={{
+            __html: md
+        }}
+
+        {...props}
+    />
+);
+
+export type {
+    MarkdownProps
+};
+
+export default Markdown;
\ No newline at end of file
-- 
cgit v1.2.3

