@shopgate/engage
Version:
Shopgate's ENGAGE library.
12 lines (11 loc) • 409 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.
*/
const mapStateToProps = state => ({
placeholderSrc: getProductImagePlaceholder(state)
});
export default connect(mapStateToProps);