import React, { PropTypes, Component } from 'react' class NotificationIcon extends Component { constructor(props) { super(props) this.state = { } } render = () => { let linkClasses = 'notificationsIcon upperRightEl upperRightIcon ' if (this.props.unreadNotificationsCount > 0) { linkClasses += 'unread' } else { linkClasses += 'read' } return (
Notifications
{this.props.unreadNotificationsCount === 0 ? null : (
)}
) } } NotificationIcon.propTypes = { unreadNotificationsCount: PropTypes.number } export default NotificationIcon