"use client"; import { cn } from "@/app/lib/cn"; import Image, { type StaticImageData } from "next/image"; import { useState, type FC } from "react"; type ProductGalleryProps = { images: readonly StaticImageData[]; alt: string; }; const ProductGallery: FC = ({ images, alt }) => { const [activeIndex, setActiveIndex] = useState(0); return (
{alt}
{images.slice(0, 4).map((image, index) => ( ))}
); }; export default ProductGallery;