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