- {/* eslint-disable-next-line
- jsx-a11y/no-noninteractive-element-interactions,
- jsx-a11y/click-events-have-key-events
- */}
-

-
-
+
String(keyCode) === '27' && onClose()}
+ modules={[Navigation, Zoom, Keyboard, A11y]}
+ onInit={(swiper: SwiperClass) => setSwiperInst(swiper)}
+ onSlidesGridLengthChange={(swiper: SwiperClass) => {
+ swiper.slideTo(images.length - gridSize, 0);
+ setGridSize(images.length);
+ }}
+ onReachBeginning={loadMore}
+ initialSlide={images.length - 1}
+ >
+ {[...images].reverse().map(({ _id, path, url }) => (
+
+
+ {/* eslint-disable-next-line
+ jsx-a11y/no-noninteractive-element-interactions,
+ jsx-a11y/click-events-have-key-events
+ */}
+

+
+
+
-
-
- ))}
-
-
-
- ,
+