1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00

21 lines
492 B
JavaScript

import ImmutablePropTypes from 'react-immutable-proptypes';
const Status = React.createClass({
propTypes: {
status: ImmutablePropTypes.map.isRequired
},
render: function() {
var content = { __html: this.props.status.get('content') };
return (
<div style={{ padding: '5px' }}>
<div><strong>{this.props.status.getIn(['account', 'username'])}</strong></div>
<div dangerouslySetInnerHTML={content} />
</div>
);
}
});
export default Status;