@shopgate/pwa-common
Version:
Common library for the Shopgate Connect PWA.
5 lines • 418 B
JavaScript
import{connect}from'react-redux';import{hasScannerSupport}from'@shopgate/pwa-common/selectors/client';/**
* Maps the contents of the state to the component props.
* @param {Object} state The current application state.
* @return {Object} The extended component props.
*/var mapStateToProps=function mapStateToProps(state){return{hasScannerSupport:hasScannerSupport(state)};};export default connect(mapStateToProps);