+
+
Shopping Cart
+
+
+
+ {cartItems.length > 0 ? (
+ cartItems.map((item: CartItem) => (
+
handleRemove(item.id)}
+ handleChange={(event) => handleChange(event, item.id)}
+ />
+ ))
+ ) : (
+
+
Your cart is empty
+
+ )}
+
+
+
+
+
Total
+
+ {getTotal(cartItems)}€
+
+
+
+
+
+ Checkout
+
+
+
+
+