Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 8x 8x 14x 8x | import { GiftCertificateItem } from '@bigcommerce/checkout-sdk';
import React from 'react';
import { IconGiftCertificate } from '../ui/icon';
import { OrderSummaryItemProps } from './OrderSummaryItem';
function mapFromGiftCertificate(item: GiftCertificateItem): OrderSummaryItemProps {
return {
id: item.id,
quantity: 1,
amount: item.amount,
name: item.name,
image:
<span
className="productImage-giftCertificate"
data-test="cart-item-gift-certificate"
>
<IconGiftCertificate />
</span>,
};
}
export default mapFromGiftCertificate;
|