import React from 'react' import PropTypes from 'prop-types' import { defineMessages, injectIntl } from 'react-intl' import ModalLayout from './modal_layout' import Text from '../text' import Button from '../button' class UnauthorizedModal extends React.PureComponent { render() { const { intl, onClose } = this.props return (
{intl.formatMessage(messages.text)}
) } } 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' }, }) UnauthorizedModal.propTypes = { intl: PropTypes.object.isRequired, onClose: PropTypes.func.isRequired, } export default injectIntl(UnauthorizedModal)