@shopgate/engage
Version:
Shopgate's ENGAGE library.
5 lines • 414 B
JavaScript
import{connect}from'react-redux';import{getProductImagePlaceholder}from"../../../core";/**
* Maps the current application state to the component props.
* @param {Object} state The current application state.
* @return {Object} The populated component props.
*/var mapStateToProps=function mapStateToProps(state){return{placeholderSrc:getProductImagePlaceholder(state)};};export default connect(mapStateToProps);