@shopgate/pwa-common
Version:
Common library for the Shopgate Connect PWA.
11 lines (10 loc) • 329 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.
*/
const mapStateToProps = state => ({
isUserLoggedIn: isUserLoggedIn(state)
});
export default connect(mapStateToProps);