"use client" import Image from 'next/image'; import Link from 'next/link'; import React from "react"; const Photo = ({src, href, alt, dim}: any) => { let classes; if(!dim || dim == "true") { classes = "transition ease-in-out delay-150 opacity-75 hover:opacity-100 hover:scale-105 duration-300" } else if (dim == "false") { classes = "transition ease-in-out delay-150 hover:scale-105 duration-300" } if(!href || href == "#") { return (
{alt} {alt}
) } else { return (
{alt} {alt}
) } } export default Photo;