UNPKG

@shopgate/engage

Version:
24 lines 726 B
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} */ import { jsx as _jsx } from "react/jsx-runtime"; export const CartItemCouponDelete = ({ handleDelete }) => /*#__PURE__*/_jsx("button", { className: styles, onClick: handleDelete, "data-test-id": "deleteCoupon", type: "button", "aria-label": i18n.text('cart.delete_coupon'), children: /*#__PURE__*/_jsx(CrossIcon, {}) }); CartItemCouponDelete.defaultProps = { handleDelete: () => {} };