'use client'; import { useState } from "react"; import Image from "next/image"; import { IconZoomInFilled } from "@tabler/icons-react"; interface ProjectImageProps { src: string; alt: string; caption?: string; onClick?: () => void; } export default function ProjectImage({ src, alt, caption, onClick }: ProjectImageProps) { const [isHovered, setIsHovered] = useState(false); const handleMouseEnter = () => { setIsHovered(true); }; const handleMouseLeave = () => { setIsHovered(false); }; return (
{alt}

{caption ?? alt}

); }