import { injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import RelativeTimestamp from './relative_timestamp'; export default @injectIntl class StatusRevisionItem extends ImmutablePureComponent { static propTypes = { loading: PropTypes.bool.isRequired, error: PropTypes.object, data: PropTypes.array }; render() { const { loading, error, data } = this.props; if (loading || !data) return null if (error) { return (