Files
Eventment/app/components/AppHeader/HeaderContentRight.container.js

16 lines
422 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);