import React from 'react'; import { translate } from '../../base/i18n'; import AbstractPageReloadOverlay from './AbstractPageReloadOverlay'; import FilmstripOnlyOverlayFrame from './FilmstripOnlyOverlayFrame'; /** * Implements a React Component for page reload overlay for filmstrip only * mode. Shown before the conference is reloaded. Shows a warning message and * counts down towards the reload. */ class PageReloadFilmstripOnlyOverlay extends AbstractPageReloadOverlay { /** * PageReloadFilmstripOnlyOverlay component's property types. * * @static */ static propTypes = { ...AbstractPageReloadOverlay.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; const { message, timeLeft, title } = this.state; return (
{ t(title) }
{ t(message, { seconds: timeLeft }) }
{ this._renderButton() } { this._renderProgressBar() }
); } } export default translate(PageReloadFilmstripOnlyOverlay);