- {products.map((product: Product) => {
- return (
-
- {product.imageUrl &&

}
-
{product.name}
-
- );
- })}
+ {products.map((product: Product) => (
+
addToOrder(product.id)}
+ amount={order.find((orderLine: OrderLine) => orderLine.id === product.id)?.amount || 0}
+ active={order.some((orderLine: OrderLine) => orderLine.id === product.id)}
+ />
+ ))}