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

SuspendedOverlay.js 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import React, { Component } from 'react';
  2. import { translate, translateToHTML } from '../../base/i18n';
  3. import OverlayFrame from './OverlayFrame';
  4. import ReloadButton from './ReloadButton';
  5. /**
  6. * Implements a React Component for suspended overlay. Shown when a suspend is
  7. * detected.
  8. */
  9. class SuspendedOverlay extends Component {
  10. /**
  11. * SuspendedOverlay component's property types.
  12. *
  13. * @static
  14. */
  15. static propTypes = {
  16. /**
  17. * The function to translate human-readable text.
  18. *
  19. * @public
  20. * @type {Function}
  21. */
  22. t: React.PropTypes.func
  23. }
  24. /**
  25. * Implements React's {@link Component#render()}.
  26. *
  27. * @inheritdoc
  28. * @returns {ReactElement|null}
  29. */
  30. render() {
  31. const { t } = this.props;
  32. return (
  33. <OverlayFrame>
  34. <div className = 'inlay'>
  35. <span className = 'inlay__icon icon-microphone' />
  36. <span className = 'inlay__icon icon-camera' />
  37. <h3
  38. className = 'inlay__title'>
  39. { t('suspendedoverlay.title') }
  40. </h3>
  41. <span className = 'inlay__text'>
  42. {
  43. translateToHTML(t, 'suspendedoverlay.title')
  44. }
  45. </span>
  46. <ReloadButton
  47. textKey = 'suspendedoverlay.rejoinKeyTitle' />
  48. </div>
  49. </OverlayFrame>
  50. );
  51. }
  52. }
  53. export default translate(SuspendedOverlay);