import React, { Component } from 'react' import PropTypes from 'prop-types' class NotificationIcon extends Component { static propTypes = { unreadNotificationsCount: PropTypes.number, toggleNotificationsBox: PropTypes.func } render = () => { const { toggleNotificationsBox } = this.props let linkClasses = 'notificationsIcon upperRightEl upperRightIcon ' linkClasses += 'ignore-react-onclickoutside ' if (this.props.unreadNotificationsCount > 0) { linkClasses += 'unread' } else { linkClasses += 'read' } return (
Notifications
{this.props.unreadNotificationsCount === 0 ? null : (
)}
) } } export default NotificationIcon