2023-03-21 19:59:16 +00:00
|
|
|
import { memo } from 'react';
|
2024-02-18 23:05:15 +00:00
|
|
|
import variables from 'config/variables';
|
2021-11-11 22:38:10 +00:00
|
|
|
|
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
|
|
|
|
2021-04-26 08:52:22 +00:00
|
|
|
return (
|
|
|
|
<>
|
2022-04-11 21:57:07 +00:00
|
|
|
<span className="closeModal" onClick={modalClose}>
|
|
|
|
×
|
|
|
|
</span>
|
|
|
|
<img src={img} className="lightboximg" draggable={false} alt="Item screenshot" />
|
2021-04-26 08:52:22 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|
2022-10-30 16:56:26 +00:00
|
|
|
|
2024-02-19 23:37:25 +00:00
|
|
|
const MemoizedLightbox = memo(Lightbox);
|
|
|
|
export default MemoizedLightbox;
|
2024-03-19 21:45:17 +00:00
|
|
|
export { MemoizedLightbox as Lightbox };
|