您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SuspendedOverlay.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import React from 'react';
  2. import AbstractOverlay from './AbstractOverlay';
  3. /**
  4. * Implements a React Component for suspended overlay. Shown when suspended
  5. * is 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. id = 'rejoin'
  29. onClick = { this._reconnectNow } />
  30. </div>
  31. );
  32. }
  33. }