2017-05-03 02:04:16 +02:00
|
|
|
import React from 'react';
|
2019-10-06 22:11:17 +02:00
|
|
|
import PropTypes from 'prop-types';
|
2017-01-10 13:50:40 +01:00
|
|
|
import { FormattedMessage } from 'react-intl';
|
2019-10-06 22:11:17 +02:00
|
|
|
import illustration from 'flavours/glitch/images/elephant_ui_disappointed.svg';
|
|
|
|
import classNames from 'classnames';
|
2022-10-20 14:35:29 +02:00
|
|
|
import { Helmet } from 'react-helmet';
|
2017-01-10 13:50:40 +01:00
|
|
|
|
2019-10-06 22:11:17 +02:00
|
|
|
const MissingIndicator = ({ fullPage }) => (
|
|
|
|
<div className={classNames('regeneration-indicator', { 'regeneration-indicator--without-header': fullPage })}>
|
|
|
|
<div className='regeneration-indicator__figure'>
|
|
|
|
<img src={illustration} alt='' />
|
|
|
|
</div>
|
2018-01-18 17:25:37 +01:00
|
|
|
|
2019-10-06 22:11:17 +02:00
|
|
|
<div className='regeneration-indicator__label'>
|
|
|
|
<FormattedMessage id='missing_indicator.label' tagName='strong' defaultMessage='Not found' />
|
|
|
|
<FormattedMessage id='missing_indicator.sublabel' defaultMessage='This resource could not be found' />
|
2017-05-03 02:04:16 +02:00
|
|
|
</div>
|
2022-10-20 14:35:29 +02:00
|
|
|
|
|
|
|
<Helmet>
|
|
|
|
<meta name='robots' content='noindex' />
|
|
|
|
</Helmet>
|
2017-01-10 13:50:40 +01:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
2019-10-06 22:11:17 +02:00
|
|
|
MissingIndicator.propTypes = {
|
|
|
|
fullPage: PropTypes.bool,
|
|
|
|
};
|
|
|
|
|
2017-01-10 13:50:40 +01:00
|
|
|
export default MissingIndicator;
|