UNPKG

@shopgate/engage

Version:
6 lines 447 B
import{connect}from'react-redux';import{getProductStock}from'@shopgate/engage/product';/** * Maps the contents of the state to the component props. * @param {Object} state The current application state. * @param {Object} props The component props. * @return {Object} The extended component props. */var mapStateToProps=function mapStateToProps(state,props){return{stock:getProductStock(state,props)};};export default connect(mapStateToProps);