diff --git a/src/Checkout/CheckoutProduct.js b/src/Checkout/CheckoutProduct.js index b094e18..39c3703 100644 --- a/src/Checkout/CheckoutProduct.js +++ b/src/Checkout/CheckoutProduct.js @@ -1,8 +1,28 @@ import React from "react"; import "./CheckoutProduct.css"; -function CheckoutProduct() { - return
CheckoutProduct
; +function CheckoutProduct({ id, image, title, price, rating }) { + return ( +
+ product info + +
+

{title}

+

+ $ + {price} +

+
+ {Array(rating) + .fill() + .map((_, i) => ( +

🌟

+ ))} +
+ +
+
+ ); } export default CheckoutProduct;