@shopgate/engage
Version:
Shopgate's ENGAGE library.
13 lines (12 loc) • 363 B
JavaScript
import { connect } from 'react-redux';
import { makeGetProductProperties } from "../../selectors/product";
/**
* @return {Function}
*/
function makeMapStateToProps() {
const getProductProperties = makeGetProductProperties();
return (state, props) => ({
properties: getProductProperties(state, props)
});
}
export default connect(makeMapStateToProps);