You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
868 B

  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import { FormattedMessage } from 'react-intl';
  4. import illustration from 'mastodon/../images/elephant_ui_disappointed.svg';
  5. import classNames from 'classnames';
  6. const MissingIndicator = ({ fullPage }) => (
  7. <div className={classNames('regeneration-indicator', { 'regeneration-indicator--without-header': fullPage })}>
  8. <div className='regeneration-indicator__figure'>
  9. <img src={illustration} alt='' />
  10. </div>
  11. <div className='regeneration-indicator__label'>
  12. <FormattedMessage id='missing_indicator.label' tagName='strong' defaultMessage='Not found' />
  13. <FormattedMessage id='missing_indicator.sublabel' defaultMessage='This resource could not be found' />
  14. </div>
  15. </div>
  16. );
  17. MissingIndicator.propTypes = {
  18. fullPage: PropTypes.bool,
  19. };
  20. export default MissingIndicator;