Files
Eventment/app/components/AppHeader/HeaderContentRight.container.js
2019-08-05 21:23:17 -04:00

13 lines
404 B
JavaScript

import { connect } from 'react-redux';
import { getProfileAvatarUrl } from '../selectors/profile.js';
import HeaderContentRight from './HeaderContentRight.js';
const matchStateToProps = (state, ownProps) => ({
avatarUrl: getProfileAvatarUrl(state),
hideUserProfileButton: ownProps.navigation.state.routeName === 'Profile',
});
export default connect(matchStateToProps, null)(HeaderContentRight);