import React from 'react';
import ErrorBoundaryError from 'Components/Error/ErrorBoundaryError';
import translate from 'Utilities/String/translate';
import PageContentBody from './PageContentBody';
import styles from './PageContentError.css';

function PageContentError(props) {
  return (
    <div className={styles.content}>
      <PageContentBody>
        <ErrorBoundaryError
          {...props}
          message={translate('ThereWasAnErrorLoadingThisPage')}
        />
      </PageContentBody>
    </div>
  );
}

export default PageContentError;
