import PropTypes from 'prop-types'; import React from 'react'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; const messages = defineMessages({ title: { id: 'column_forbidden.title', defaultMessage: 'Forbidden' }, body: { id: 'column_forbidden.body', defaultMessage: 'You do not have permission to access this page.' }, }); class ColumnForbidden extends React.PureComponent { static propTypes = { intl: PropTypes.object.isRequired, } render() { const { intl: { formatMessage } } = this.props; return (
{formatMessage(messages.body)}
); } } export default injectIntl(ColumnForbidden);