import React from "react"; import "./CounterDesign.scss"; import blackDisLikeIcon from "../../assets/icons/black-dislike-icon.svg"; import blackLikeIcon from "../../assets/icons/black-like-icon.svg"; import decrementCounterIcon from "../../assets/icons/decrement-counter-icon.svg"; import incrementCounterIcon from "../../assets/icons/increment-counter-icon.svg"; // {deliveryIcon && ( // // )} const CounterDesign = ({ counterColor, counterIncreaseBtn, counterDecreaseBtn, likeBtn, }) => { return (

طراحی کانتر

نام این کامپوننت counterDesign است.

{likeBtn && (
)} {counterIncreaseBtn && ( )}

561

{counterDecreaseBtn && ( )}
); }; export default CounterDesign; // color classes that i defined in tailwind.config.js and we can use for text color: // ----> text-lightBlueTextColor // ----> text-darkRedTextColor CounterDesign.defaultProps = { counterColor: "text-darkRedTextColor", // for icons likeBtn: false, counterIncreaseBtn: true, counterDecreaseBtn: true, };