import React, { Component } from 'react' import classnames from 'classnames'; export default class PublishTile extends Component { constructor(props){ super(props); } render(){ let info = []; if (this.props.data.invites > 0) { let text = (this.props.data.invites == 1) ? "Invite" : "Invites" info.push(

{this.props.data.invites} {text}

); } if (this.props.data.new > 0) { let text = (this.props.data.new == 1) ? "New Post" : "New Posts" info.push(

{this.props.data.new} {text}

); } return (

Publish

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