@shopgate/pwa-common
Version:
Common library for the Shopgate Connect PWA.
4 lines • 334 B
JavaScript
import{connect}from'react-redux';import{isUserLoggedIn}from"../../selectors/user";/**
* @param {Object} state The current application state.
* @return {Object} The extended component props.
*/var mapStateToProps=function mapStateToProps(state){return{isUserLoggedIn:isUserLoggedIn(state)};};export default connect(mapStateToProps);