'use client' import { useState } from 'react' import { ResponsiveImage, SpecialSell } from 'components' import { Swiper, SwiperSlide } from 'swiper/react' import { Pagination } from 'swiper' import 'swiper/css' import 'swiper/css/pagination' const ImageGallery = props => { //? Porps const { images, discount, inStock, productName } = props //? States const [currentImage, setCurrentImage] = useState(0) //? Render(s) return (
{images.map((image, index) => ( setCurrentImage(index)} src={image.url} alt={productName} /> ))}
{images.map((image, index) => ( ))}
) } export default ImageGallery