var classNames = require('classnames'); var FormattedMessage = require('react-intl').FormattedMessage; var injectIntl = require('react-intl').injectIntl; var React = require('react'); var SocialMessage = require('../../../components/social-message/social-message.jsx'); var CuratorInviteMessage = injectIntl(React.createClass({ type: 'CuratorInviteMessage', propTypes: { actorUsername: React.PropTypes.string.isRequired, studioId: React.PropTypes.number.isRequired, studioTitle: React.PropTypes.string.isRequired, datetimePromoted: React.PropTypes.string.isRequired }, render: function () { var studioLink = '/studios/' + this.props.studioId + '/'; var tabLink = '/studios/' + this.props.studioId + '/curators/'; var actorLink = '/users/' + this.props.actorUsername + '/'; var tabText = this.props.intl.formatMessage({id: 'messages.curatorTabText'}); var classes = classNames( 'mod-curator-invite', this.props.className ); return ( {this.props.actorUsername} , studioLink: {this.props.studioTitle}, tabLink: {tabText} }} /> ); } })); module.exports = CuratorInviteMessage;