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