@shopgate/engage
Version:
Shopgate's ENGAGE library.
15 lines (14 loc) • 479 B
JavaScript
import { connect } from 'react-redux';
import { makeGetProductPriceData, makeGetProductMapPrice } from "../../selectors/price";
/**
* @return {Function}
*/
function makeMapStateToProps() {
const getProductPriceData = makeGetProductPriceData();
const getProductMapPrice = makeGetProductMapPrice();
return (state, props) => ({
price: getProductPriceData(state, props),
mapPrice: getProductMapPrice(state, props)
});
}
export default connect(makeMapStateToProps);