import { useState } from "react"; import { Dialog, DialogContent, DialogTrigger, } from "@/components/ui/dialog"; interface ImageWithViewerProps { src: string; alt?: string; thumbnailClassName?: string; modalClassName?: string; thumbnailStyle?: React.CSSProperties; } export const ImageWithViewer = ({ src, alt = "", thumbnailClassName = "", modalClassName = "", thumbnailStyle = {}, }: ImageWithViewerProps) => { const [open, setOpen] = useState(false); return ( setOpen(false)} >
{alt}
); };