UNPKG

@shopgate/engage

Version:
23 lines (22 loc) 537 B
import React from 'react'; import PropTypes from 'prop-types'; import { i18n } from '@shopgate/engage/core'; /** * The Coupon Free Shipping component. * @param {Object} props The component props. * @returns {JSX} */ import { jsx as _jsx } from "react/jsx-runtime"; export function CartItemCouponFreeShipping({ freeShipping }) { if (!freeShipping) { return null; } return /*#__PURE__*/_jsx("div", { children: i18n.text('cart.free_shipping') }); } CartItemCouponFreeShipping.defaultProps = { freeShipping: false };