import { defineMessages, injectIntl } from 'react-intl' import ImmutablePureComponent from 'react-immutable-pure-component' import ModalLayout from './modal_layout' import Text from '../text' import Button from '../button' const messages = defineMessages({ signup: { id: 'unauthorized_modal.title', defaultMessage: 'Sign up for Gab' }, text: { id: 'unauthorized_modal.text', defaultMessage: 'You need to be logged in to do that.' }, register: { id: 'account.register', defaultMessage: 'Sign up' }, login: { id: 'account.login', defaultMessage: 'Log in' }, }) export default @injectIntl class UnauthorizedModal extends ImmutablePureComponent { static propTypes = { intl: PropTypes.object.isRequired, onClose: PropTypes.func.isRequired, } render() { const { intl, onClose } = this.props return (
{intl.formatMessage(messages.text)}
) } }