From f5c21698a09d9214f57ce6dab2595f3d61e1ff11 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Thu, 7 Jan 2021 13:22:21 +0300
Subject: feat!: use react-markdown

---
 src/lib/Markdown/Image.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 src/lib/Markdown/Image.tsx

(limited to 'src/lib/Markdown/Image.tsx')

diff --git a/src/lib/Markdown/Image.tsx b/src/lib/Markdown/Image.tsx
new file mode 100644
index 0000000..472d6f0
--- /dev/null
+++ b/src/lib/Markdown/Image.tsx
@@ -0,0 +1,12 @@
+import React from 'react';
+
+interface PropTypes {
+  src: string;
+  alt: string;
+}
+
+const Image: React.FC<PropTypes> = ({ src, alt }) => {
+  return <img src={src} alt={alt} style={{ maxWidth: '100%', maxHeight: '100%' }} />;
+};
+
+export default Image;
-- 
cgit v1.2.3

