@shopgate/engage
Version:
Shopgate's ENGAGE library.
5 lines • 419 B
JavaScript
import{connect}from'react-redux';import{getVariantAvailabilityByCharacteristics}from'@shopgate/pwa-common-commerce/product';/**
* @param {Object} state The application state.
* @param {Object} props The component props.
* @return {Object}
*/var mapStateToProps=function mapStateToProps(state,props){return{availability:getVariantAvailabilityByCharacteristics(state,props)};};export default connect(mapStateToProps);