{
+ if (event.target === event.currentTarget) {
+ onIndexChange(null);
+ }
+ }}
+ >
+ {image && (
+

+ setDimensions(
+ `${event.currentTarget.naturalWidth}×${event.currentTarget.naturalHeight}`,
+ )
+ }
+ draggable={false}
+ className="max-h-full max-w-full rounded-md object-contain shadow-2xl select-none motion-safe:animate-in motion-safe:duration-200 motion-safe:fade-in-0 motion-safe:zoom-in-[0.97]"
+ data-test="image-viewer-image"
+ />
+ )}
+
+ {hasMany && (
+ <>
+
step(-1)}
+ className="left-2 sm:left-3"
+ >
+
+
+
step(1)}
+ className="right-2 sm:right-3"
+ >
+
+
+ >
+ )}
+
+
+