mirror of https://github.com/mue/mue.git
20 lines
496 B
JavaScript
20 lines
496 B
JavaScript
import { memo } from 'react';
|
|
import variables from 'config/variables';
|
|
|
|
function Lightbox({ modalClose, img }) {
|
|
variables.stats.postEvent('modal', 'Opened lightbox');
|
|
|
|
return (
|
|
<>
|
|
<span className="closeModal" onClick={modalClose}>
|
|
×
|
|
</span>
|
|
<img src={img} className="lightboximg" draggable={false} alt="Item screenshot" />
|
|
</>
|
|
);
|
|
}
|
|
|
|
const MemoizedLightbox = memo(Lightbox);
|
|
export default MemoizedLightbox;
|
|
export { MemoizedLightbox as Lightbox };
|