"use client"; import { useEffect, useRef } from "react"; import Image from "next/image"; import Zoomist from "zoomist"; import "zoomist/css"; export default function ImageViewer({ src, alt }: { src: string, alt: string }) { const container = useRef(null); useEffect(() => { if (container.current) { new Zoomist(container.current, { maxScale: 5, bounds: true, pinchable: true }); } }); return (
{alt}
); }