+ {cartItems.map((item) => {
+ const product = getProductDetails(item.productId);
+ if (!product) return null;
+
+ return (
+
+ {/* Product Image */}
+
+

{
+ const target = e.target as HTMLImageElement;
+ target.src = '/placeholder-product.png';
+ }}
+ />
+
+
+ {/* Product Details */}
+
+
+ {product.name}
+
+
+ SKU: {product.sku}
+
+
+ ${item.unitPrice.toFixed(2)} each
+
+
+
+ {/* Quantity Controls */}
+
+
+
+ {item.quantity}
+
+
+
+
+ {/* Item Total */}
+
+
+ ${(item.quantity * item.unitPrice).toFixed(2)}
+
+
+
+ {/* Remove Button */}
+
+