2019-04-09 11:05:20 +00:00
|
|
|
// @flow
|
|
|
|
|
2017-11-09 13:34:42 +00:00
|
|
|
import React from 'react';
|
2017-01-31 20:58:48 +00:00
|
|
|
|
2019-06-24 08:39:38 +00:00
|
|
|
import { translate } from '../../../base/i18n';
|
2017-01-31 20:58:48 +00:00
|
|
|
|
2017-11-09 13:34:42 +00:00
|
|
|
import AbstractSuspendedOverlay from './AbstractSuspendedOverlay';
|
2017-03-09 00:16:53 +00:00
|
|
|
import OverlayFrame from './OverlayFrame';
|
|
|
|
import ReloadButton from './ReloadButton';
|
2017-02-23 16:56:25 +00:00
|
|
|
|
2017-01-31 20:58:48 +00:00
|
|
|
/**
|
2017-02-19 00:42:11 +00:00
|
|
|
* Implements a React Component for suspended overlay. Shown when a suspend is
|
|
|
|
* detected.
|
2017-01-31 20:58:48 +00:00
|
|
|
*/
|
2017-11-09 13:34:42 +00:00
|
|
|
class SuspendedOverlay 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-01-31 20:58:48 +00:00
|
|
|
*/
|
2017-03-09 00:16:53 +00:00
|
|
|
render() {
|
2017-02-23 16:56:25 +00:00
|
|
|
const { t } = this.props;
|
2017-01-31 20:58:48 +00:00
|
|
|
|
|
|
|
return (
|
2017-03-09 00:16:53 +00:00
|
|
|
<OverlayFrame>
|
|
|
|
<div className = 'inlay'>
|
|
|
|
<span className = 'inlay__icon icon-microphone' />
|
|
|
|
<span className = 'inlay__icon icon-camera' />
|
|
|
|
<h3
|
|
|
|
className = 'inlay__title'>
|
|
|
|
{ t('suspendedoverlay.title') }
|
|
|
|
</h3>
|
2017-05-31 05:24:34 +00:00
|
|
|
<ReloadButton textKey = 'suspendedoverlay.rejoinKeyTitle' />
|
2017-03-09 00:16:53 +00:00
|
|
|
</div>
|
|
|
|
</OverlayFrame>
|
2017-01-31 20:58:48 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2017-02-23 16:56:25 +00:00
|
|
|
|
|
|
|
export default translate(SuspendedOverlay);
|