import React, { Component } from 'react'; import classnames from 'classnames'; import _ from 'lodash'; export default class ContactTile extends Component { render() { const { props } = this; let data = _.get(props.data, "invites", false); let inviteNum = 0; if (data && "/contacts" in data) { inviteNum = Object.keys(data["/contacts"]).length; } let numNotificationsElem = inviteNum > 0 ? (

{inviteNum > 99 ? "99+" : inviteNum}

) : (
); return (

Groups

{numNotificationsElem}
); } } window['contact-viewTile'] = ContactTile;