@shopgate/engage
Version:
Shopgate's ENGAGE library.
5 lines • 428 B
JavaScript
import{connect}from'react-redux';import{getAppliedPromotionsWithoutCoupons}from"../../cart.selectors";/**
* Maps the contents of the state to the component props.
* @param {Object} state The current application state.
* @return {Object} The extended component props.
*/var mapStateToProps=function mapStateToProps(state){return{promotions:getAppliedPromotionsWithoutCoupons(state)};};export default connect(mapStateToProps);