@shopgate/engage
Version:
Shopgate's ENGAGE library.
12 lines (11 loc) • 418 B
JavaScript
import { connect } from 'react-redux';
import { getVariantAvailabilityByCharacteristics } from '@shopgate/pwa-common-commerce/product';
/**
* @param {Object} state The application state.
* @param {Object} props The component props.
* @return {Object}
*/
const mapStateToProps = (state, props) => ({
availability: getVariantAvailabilityByCharacteristics(state, props)
});
export default connect(mapStateToProps);