@shopgate/engage
Version:
Shopgate's ENGAGE library.
25 lines (24 loc) • 719 B
JavaScript
import React from 'react';
import { RippleButton, I18n } from '@shopgate/engage/components';
import { button, ripple } from "./CartItemProductLayoutWideRemoveItem.style";
import { useCartItemProduct } from "./CartItem.hooks";
/**
* @returns {JSX.Element}
*/
import { jsx as _jsx } from "react/jsx-runtime";
const CartItemProductLayoutWideRemoveItem = () => {
const {
handleRemove
} = useCartItemProduct();
return /*#__PURE__*/_jsx(RippleButton, {
onClick: handleRemove,
className: button,
rippleClassName: ripple,
type: "secondary",
flat: true,
children: /*#__PURE__*/_jsx(I18n.Text, {
string: "cart.remove_item"
})
});
};
export { CartItemProductLayoutWideRemoveItem };