@shopgate/engage
Version:
Shopgate's ENGAGE library.
20 lines (19 loc) • 524 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { i18n } from '@shopgate/engage/core/helpers';
import { Ellipsis } from '@shopgate/engage/components';
/**
* The Coupon Code component.
* @param {Object} props The component props.
* @returns {JSX}
*/
import { jsx as _jsx } from "react/jsx-runtime";
export const CartItemCouponCode = ({
value
}) => /*#__PURE__*/_jsx(Ellipsis, {
rows: 2,
children: `${i18n.text('cart.coupon_code')}: ${value}`
});
CartItemCouponCode.defaultProps = {
value: ''
};