import React, { Component } from 'react' import PropTypes from 'prop-types' import AccountMenu from './AccountMenu' import LoginForm from './LoginForm' import NotificationIcon from './NotificationIcon' class UpperRightUI extends Component { static propTypes = { currentUser: PropTypes.object, signInPage: PropTypes.bool, unreadNotificationsCount: PropTypes.number, openInviteLightbox: PropTypes.func } constructor(props) { super(props) this.state = {accountBoxOpen: false} } reset = () => { this.setState({accountBoxOpen: false}) } toggleAccountBox = () => { this.setState({accountBoxOpen: !this.state.accountBoxOpen}) } render () { const { currentUser, signInPage, unreadNotificationsCount, openInviteLightbox } = this.props const { accountBoxOpen } = this.state return