import React from "react"; const AddToCartCard = ({ numberOfSuggest, sendingTime, button, price, profit, showProduct, productName, productImg, productCat, }) => { const specialities = [ { icon: "images/tick-circle.svg", description: ` توصیه به خرید توسط ${numberOfSuggest} نفر`, }, { icon: "images/shield-tick.svg", description: `زمان ارسال ${sendingTime} روز کاری پس از سفارش`, }, { icon: "images/delivery-icon.svg", description: `گارانتی اصالت و سلامت فیزیکی`, }, ]; return (
{showProduct && (
productImage

{productName}

{productCat}

)} {specialities.map((item, index) => (
{item.icon && }

{item.description}

))}

{price} تومان

{profit && (
با خرید این کالا {profit} تومان سود کنید
)}
{button}
); }; export default AddToCartCard;