"use client"; import Image from "next/image"; import { ZoomIn } from "lucide-react"; import { useState } from "react"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; export function ProductGallery({ images, name }: { images: string[]; name: string }) { const [selected, setSelected] = useState(images[0] ?? ""); return
{images.map((image) => )}
{name}
; }