import React from 'react' import Link from 'next/link' import styles from './style.module.css' export default function Card({item, numberInCart}) { let featuredImage = item.images.filter(i=>i.featured)[0] if(!featuredImage) featuredImage = item.images[0] return (

{item.name}

{featuredImage && }
{item.description}
) }