import { injectIntl, defineMessages } from 'react-intl' import Button from './button' import Text from './text' const messages = defineMessages({ warning: { id: 'status.sensitive_warning_2', defaultMessage: 'The following media includes potentially sensitive content.' }, view: { id: 'view', defaultMessage: 'View' }, }); export default @injectIntl class SensitiveMediaItem extends PureComponent { static propTypes = { intl: PropTypes.object.isRequired, onClick: PropTypes.func.isRequired, } render() { const { intl, onClick, } = this.props return (
{intl.formatMessage(messages.warning)}
) } }