import { FC } from 'react' import cn from 'classnames' import Image, { ImageProps } from 'next/image' import s from './ProductCard.module.css' // Restore Wishlist func // import WishlistButton from '@components/wishlist/WishlistButton' interface Props { className?: string product: Product variant?: 'slim' | 'simple' imgProps?: Omit } const ProductCard: FC = ({ className, product, variant, imgProps }) => { const firstImage = product.images[0] return ( {variant === 'slim' ? (
{product.name} {/* Image */}
) : ( <>

{product.name}

{product.price}
{firstImage.src && ( {product.name} )}
)}
) } export default ProductCard