@shopgate/engage
Version:
Shopgate's ENGAGE library.
12 lines (11 loc) • 416 B
JavaScript
import { connect } from 'react-redux';
import { getOrderableStatus } from '@shopgate/pwa-common-commerce/cart/selectors';
/**
* Maps the contents of the state to the component props.
* @param {Object} state The current application state.
* @return {Object} The extended component props.
*/
const mapStateToProps = state => ({
isOrderable: getOrderableStatus(state)
});
export default connect(mapStateToProps);