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);
