jiti-meet/react/features/overlay/components/web/SuspendedOverlay.js

42 lines
1.1 KiB
JavaScript
Raw Normal View History

2019-04-09 11:05:20 +00:00
// @flow
import React from 'react';
2019-06-24 08:39:38 +00:00
import { translate } from '../../../base/i18n';
import AbstractSuspendedOverlay from './AbstractSuspendedOverlay';
import OverlayFrame from './OverlayFrame';
import ReloadButton from './ReloadButton';
/**
2017-02-19 00:42:11 +00:00
* Implements a React Component for suspended overlay. Shown when a suspend is
* detected.
*/
class SuspendedOverlay extends AbstractSuspendedOverlay {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement}
*/
render() {
const { t } = this.props;
return (
<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' />
</div>
</OverlayFrame>
);
}
}
export default translate(SuspendedOverlay);