mue/src/features/marketplace/components/Elements/Lightbox/Lightbox.jsx

20 lines
496 B
React
Raw Normal View History

import { memo } from 'react';
import variables from 'config/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
const MemoizedLightbox = memo(Lightbox);
export default MemoizedLightbox;
2024-03-19 21:45:17 +00:00
export { MemoizedLightbox as Lightbox };