aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/Image.tsx
blob: 472d6f091f63d3c6192ebfca4bb21e1920477c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
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;