"use client";
import { Maximize2, X } from "lucide-react";
import { useState } from "react";
export default function ProductGallery({
images,
title,
}: {
images: string[];
title: string;
}) {
const [activeImage, setActiveImage] = useState(images[0]);
const [lightboxOpen, setLightboxOpen] = useState(false);
return (
<>
{images.length > 1 && (
{images.map((image, index) => (
))}
)}
{lightboxOpen && (
setLightboxOpen(false)}
>

event.stopPropagation()}
/>
)}
>
);
}