mirror of https://github.com/mue/mue.git
18 lines
413 B
JavaScript
18 lines
413 B
JavaScript
import { memo } from 'react';
|
|
import variables from 'modules/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" />
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default memo(Lightbox);
|