I have this in my file:
export default withAuth(authOptions)(ProfilePage);
But I also need to export this:
function mapStateToProps (state) {
const { isLoggedIn } = state
return { isLoggedIn}
}
const mapDispatchToProps = dispatch =>
bindActionCreators({ logInUser }, dispatch)
export default connect(
mapStateToProps,
mapDispatchToProps
)(ProfilePage)
I can I combine them so they both work?