+ {/* Header */}
+
+
+
+
+
+
+ {currentIndex + 1} / {images.length}
+
+
+
+ {/* Main Image */}
+
+
{
+ e.stopPropagation()
+ toggleZoom()
+ }}
+ onMouseMove={handleMouseMove}
+ >
+
+
+
+
+
+ {/* Navigation Buttons */}
+ {images.length > 1 && !isZoomed && (
+ <>
+
+
+ >
+ )}
+
+
+ {/* راهنما */}
+ {isZoomed && (
+
+ برای خروج از حالت زوم ESC یا دوباره کلیک کنید
+
+ )}
+
+ {/* Thumbnails */}
+
e.stopPropagation()}
+ >
+ {images.map((image, index) => (
+
onIndexChange(index)}
+ >
+
+
+ ))}
+
+
+ )
+}
+
+export default ImageGalleryModal
diff --git a/src/app/product/components/ProductImage.tsx b/src/app/product/components/ProductImage.tsx
index bc01494..be88f6f 100644
--- a/src/app/product/components/ProductImage.tsx
+++ b/src/app/product/components/ProductImage.tsx
@@ -4,6 +4,7 @@ import { FC, useState } from 'react'
import ActionProduct from './ActionProduct'
import { Product } from '@/types/product.types'
import ModalReport from './ModalReport'
+import ImageGalleryModal from './ImageGalleryModal'
interface ProductImageProps {
product: Product
@@ -11,19 +12,23 @@ interface ProductImageProps {
const ProductImage: FC