2018-01-30 11:53:12 -05:00
|
|
|
const classNames = require('classnames');
|
|
|
|
const FormattedMessage = require('react-intl').FormattedMessage;
|
|
|
|
const PropTypes = require('prop-types');
|
|
|
|
const React = require('react');
|
2017-08-31 17:05:22 -04:00
|
|
|
|
2018-01-30 11:53:12 -05:00
|
|
|
const SocialMessage = require('../../../components/social-message/social-message.jsx');
|
2017-08-31 17:05:22 -04:00
|
|
|
|
2018-01-30 11:53:12 -05:00
|
|
|
const StudioActivityMessage = props => (
|
|
|
|
<SocialMessage
|
|
|
|
className={classNames(
|
2018-01-30 09:54:45 -05:00
|
|
|
'mod-studio-activity',
|
2018-01-30 11:53:12 -05:00
|
|
|
props.className
|
|
|
|
)}
|
|
|
|
datetime={props.datetimeCreated}
|
|
|
|
iconAlt="studio activity notification image"
|
|
|
|
iconSrc="/svgs/messages/studio-activity.svg"
|
|
|
|
>
|
|
|
|
<FormattedMessage
|
|
|
|
id="messages.studioActivityText"
|
|
|
|
values={{
|
|
|
|
studioLink: (
|
|
|
|
<a href={`/studios/${props.studioId}/activity`}>
|
|
|
|
{props.studioTitle}
|
|
|
|
</a>
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</SocialMessage>
|
|
|
|
);
|
|
|
|
|
|
|
|
StudioActivityMessage.propTypes = {
|
|
|
|
className: PropTypes.string,
|
|
|
|
datetimeCreated: PropTypes.string.isRequired,
|
|
|
|
studioId: PropTypes.number.isRequired,
|
|
|
|
studioTitle: PropTypes.string.isRequired
|
|
|
|
};
|
2017-08-31 17:05:22 -04:00
|
|
|
|
|
|
|
module.exports = StudioActivityMessage;
|