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

46 lines
1.3 KiB
JavaScript
Raw Normal View History

import React from 'react';
2017-03-01 02:55:12 +00:00
import { translate } from '../../base/i18n';
2017-03-01 02:55:12 +00:00
import AbstractOverlay from './AbstractOverlay';
/**
2017-02-19 00:42:11 +00:00
* Implements a React Component for suspended overlay. Shown when a suspend is
* detected.
*/
class SuspendedOverlay extends AbstractOverlay {
/**
* Constructs overlay body with the message and a button to rejoin.
*
* @returns {ReactElement|null}
* @override
* @protected
*/
_renderOverlayContent() {
const btnClass = 'inlay__button button-control button-control_primary';
const { t } = this.props;
/* eslint-disable react/jsx-handler-names */
return (
<div className = 'inlay'>
<span className = 'inlay__icon icon-microphone' />
<span className = 'inlay__icon icon-camera' />
<h3
className = 'inlay__title'>
{ t('suspendedoverlay.title') }
</h3>
<button
className = { btnClass }
onClick = { this._reconnectNow }>
{ t('suspendedoverlay.rejoinKeyTitle') }
</button>
</div>
);
2017-02-19 00:42:11 +00:00
/* eslint-enable react/jsx-handler-names */
}
}
export default translate(SuspendedOverlay);