You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SuspendedOverlay.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import React from 'react';
  2. import AbstractOverlay from './AbstractOverlay';
  3. /**
  4. * Implements a React Component for suspended overlay. Shown when a suspend is
  5. * detected.
  6. */
  7. export default class SuspendedOverlay extends AbstractOverlay {
  8. /**
  9. * Constructs overlay body with the message and a button to rejoin.
  10. *
  11. * @returns {ReactElement|null}
  12. * @override
  13. * @protected
  14. */
  15. _renderOverlayContent() {
  16. const btnClass = 'inlay__button button-control button-control_primary';
  17. /* eslint-disable react/jsx-handler-names */
  18. return (
  19. <div className = 'inlay'>
  20. <span className = 'inlay__icon icon-microphone' />
  21. <span className = 'inlay__icon icon-camera' />
  22. <h3
  23. className = 'inlay__title'
  24. data-i18n = 'suspendedoverlay.title' />
  25. <button
  26. className = { btnClass }
  27. data-i18n = 'suspendedoverlay.rejoinKeyTitle'
  28. onClick = { this._reconnectNow } />
  29. </div>
  30. );
  31. /* eslint-enable react/jsx-handler-names */
  32. }
  33. }