I am working on an e-commerce project and have to fetch product details data through SSR and render it on the screen. While the data is displayed correctly, I am facing issues with displaying the product images. I am using the react-responsive-carousel component for the image gallery, but it is not functioning properly. Can you please provide me with an example of how to use this component with SSR?
import { Carousel } from "react-responsive-carousel";
<Carousel
showArrows={true}
showThumbs={false}
className="position-relative"
>
{detaildata?.listingImages?.map((item,index) => (
<React.Fragment key={index}>
<Image
className="d-block imgdiv" src={item} alt=""
layout="fill"
objectFit="cover"
/>
</React.Fragment>
))}
</Carousel>
My expecting output is Images are render properly with SSR in nextjs.
my output screen.