@shopgate/engage
Version:
Shopgate's ENGAGE library.
5 lines • 689 B
JavaScript
import React from'react';import PropTypes from'prop-types';import{CrossIcon}from'@shopgate/engage/components';import{i18n}from'@shopgate/engage/core';import styles from"./CartItemCouponDelete.style";/**
* The Coupon Delete component.
* @param {Object} props The component properties.
* @returns {JSX}
*/export var CartItemCouponDelete=function CartItemCouponDelete(_ref){var handleDelete=_ref.handleDelete;return React.createElement("button",{className:styles,onClick:handleDelete,"data-test-id":"deleteCoupon",type:"button","aria-label":i18n.text('cart.delete_coupon')},React.createElement(CrossIcon,null));};CartItemCouponDelete.defaultProps={handleDelete:function handleDelete(){}};