mue/src/components/modals/main/marketplace/Lightbox.jsx

18 lines
413 B
React
Raw Normal View History

2022-10-30 16:56:26 +00:00
import { memo } from 'react';
import variables from 'modules/variables';
2022-10-30 16:56:26 +00:00
function Lightbox({ modalClose, img }) {
2021-09-28 22:04:04 +00:00
variables.stats.postEvent('modal', 'Opened lightbox');
2021-06-21 16:42:14 +00:00
return (
<>
<span className="closeModal" onClick={modalClose}>
&times;
</span>
<img src={img} className="lightboximg" draggable={false} alt="Item screenshot" />
</>
);
}
2022-10-30 16:56:26 +00:00
2022-11-06 11:59:59 +00:00
export default memo(Lightbox);