UNPKG

@shopgate/engage

Version:
12 lines (11 loc) 416 B
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);