2019-04-09 11:05:20 +00:00
|
|
|
// @flow
|
|
|
|
|
2017-11-09 13:34:42 +00:00
|
|
|
import React from 'react';
|
2017-03-09 00:16:53 +00:00
|
|
|
|
2019-04-09 11:05:20 +00:00
|
|
|
import { translate, translateToHTML } from '../../../base/i18n';
|
2017-03-09 00:16:53 +00:00
|
|
|
|
2017-11-09 13:34:42 +00:00
|
|
|
import AbstractSuspendedOverlay from './AbstractSuspendedOverlay';
|
2017-04-10 17:59:44 +00:00
|
|
|
import FilmstripOnlyOverlayFrame from './FilmstripOnlyOverlayFrame';
|
2017-03-09 00:16:53 +00:00
|
|
|
import ReloadButton from './ReloadButton';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements a React Component for suspended overlay for filmstrip only mode.
|
|
|
|
* Shown when suspended is detected.
|
|
|
|
*/
|
2017-11-09 13:34:42 +00:00
|
|
|
class SuspendedFilmstripOnlyOverlay extends AbstractSuspendedOverlay {
|
2017-03-09 00:16:53 +00:00
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
2017-11-27 22:08:12 +00:00
|
|
|
* @returns {ReactElement}
|
2017-03-09 00:16:53 +00:00
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
const { t } = this.props;
|
|
|
|
|
|
|
|
return (
|
2017-04-10 17:59:44 +00:00
|
|
|
<FilmstripOnlyOverlayFrame isLightOverlay = { true }>
|
2017-03-09 00:16:53 +00:00
|
|
|
<div className = 'inlay-filmstrip-only__container'>
|
|
|
|
<div className = 'inlay-filmstrip-only__title'>
|
|
|
|
{ t('suspendedoverlay.title') }
|
|
|
|
</div>
|
|
|
|
<div className = 'inlay-filmstrip-only__text'>
|
|
|
|
{ translateToHTML(t, 'suspendedoverlay.text') }
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<ReloadButton textKey = 'suspendedoverlay.rejoinKeyTitle' />
|
2017-04-10 17:59:44 +00:00
|
|
|
</FilmstripOnlyOverlayFrame>
|
2017-03-09 00:16:53 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-10 17:59:44 +00:00
|
|
|
export default translate(SuspendedFilmstripOnlyOverlay);
|