@shopgate/engage
Version:
Shopgate's ENGAGE library.
6 lines • 470 B
JavaScript
import{connect}from'react-redux';import{getProduct}from'@shopgate/pwa-common-commerce/product/selectors/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{product:getProduct(state,props)};};export default connect(mapStateToProps);