blob: bdb36873875708dae45f9f2bbbb385554a0127c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { makeStyles } from '@material-ui/styles';
import React from 'react';
const useStyles = makeStyles({
tag: {
maxWidth: '100%',
},
});
const ImageTag = ({
alt,
...props
}: React.ImgHTMLAttributes<HTMLImageElement>) => {
const classes = useStyles();
return (
<a href={props.src} target="_blank" rel="noopener noreferrer nofollow">
<img className={classes.tag} alt={alt} {...props} />
</a>
);
};
export default ImageTag;
|