UNPKG

@shopgate/engage

Version:
4 lines 549 B
import{connect}from'react-redux';import{getDiscounts,getShippingCost,getSubTotal,getGrandTotal,getTax}from'@shopgate/pwa-common-commerce/cart/selectors';/** * Creates the mapStateToProps connector function. * @returns {Function} */var makeMapStateToProps=function makeMapStateToProps(){return function(state,props){return{discounts:getDiscounts(state,props),shippingCosts:getShippingCost(state,props),subTotal:getSubTotal(state,props),grandTotal:getGrandTotal(state,props),tax:getTax(state,props)};};};export default connect(makeMapStateToProps);