2022-01-03 08:56:17 -08:00
|
|
|
import PropTypes from 'prop-types';
|
2022-01-10 14:17:52 -08:00
|
|
|
import React from 'react';
|
2022-01-03 08:56:17 -08:00
|
|
|
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 (
|
2022-03-30 06:07:17 -07:00
|
|
|
<Column label={formatMessage(messages.title)}>
|
2022-01-03 08:56:17 -08:00
|
|
|
<div className='error-column'>
|
|
|
|
{formatMessage(messages.body)}
|
|
|
|
</div>
|
|
|
|
</Column>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export default injectIntl(ColumnForbidden);
|