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

39 lines
1.1 KiB
JavaScript
Raw Normal View History

import React from 'react';
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.
*/
export default 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';
/* 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'
data-i18n = 'suspendedoverlay.title' />
<button
className = { btnClass }
data-i18n = 'suspendedoverlay.rejoinKeyTitle'
onClick = { this._reconnectNow } />
</div>
);
2017-02-19 00:42:11 +00:00
/* eslint-enable react/jsx-handler-names */
}
}