{type === 'amount' &&
{
{renderCurrencyValue(value)}
} {off}
}
{type === 'fixed-price' &&
For{
{renderCurrencyValue(value)}
}
}
{!['amount'].includes(type) && value}
{type === 'percentage' &&
% {off}}
;
}
const renderDiscountValue = () => {
if (type === 'percentage') {
return renderOfferMainValue(amount, 'percentage');
}
if (type === 'amount') {
return renderOfferMainValue(amount, 'amount');
}
}
//const cardData = getCardComponentData('offer', type);
return