aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/Image.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-01-07 13:22:21 +0300
committereug-vs <eug-vs@keemail.me>2021-01-07 15:17:43 +0300
commitf5c21698a09d9214f57ce6dab2595f3d61e1ff11 (patch)
tree900b605f147a5a024377b42be16a6f677a10a387 /src/lib/Markdown/Image.tsx
parentafa7e4abe02959798665949193d832907d97153a (diff)
downloadreact-benzin-f5c21698a09d9214f57ce6dab2595f3d61e1ff11.tar.gz
feat!: use react-markdown
Diffstat (limited to 'src/lib/Markdown/Image.tsx')
-rw-r--r--src/lib/Markdown/Image.tsx12
1 files changed, 12 insertions, 0 deletions
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;