import React, { Component } from 'react'; import { translate, translateToHTML } from '../../base/i18n'; import OverlayFrame from './OverlayFrame'; import ReloadButton from './ReloadButton'; /** * Implements a React Component for suspended overlay. Shown when a suspend is * detected. */ class SuspendedOverlay extends Component { /** * SuspendedOverlay component's property types. * * @static */ static propTypes = { /** * The function to translate human-readable text. * * @public * @type {Function} */ t: React.PropTypes.func } /** * Implements React's {@link Component#render()}. * * @inheritdoc * @returns {ReactElement|null} */ render() { const { t } = this.props; return (

{ t('suspendedoverlay.title') }

{ translateToHTML(t, 'suspendedoverlay.title') }
); } } export default translate(SuspendedOverlay);