import React, { Component } from 'react' import classnames from 'classnames'; export default class PublishTile extends Component { constructor(props){ super(props); console.log("publish-tile", this.props); } render(){ let notificationsNum = this.props.data.notifications; if (notificationsNum === 0) { notificationsNum = ""; } else if (notificationsNum > 99) { notificationsNum = "99+"; } else if (isNaN(notificationsNum)) { notificationsNum = ""; } return (

Publishing

{notificationsNum}
); } } window.publishTile = PublishTile;