Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

MuteRemoteParticipantsVideoDialog.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* @flow */
  2. import React from 'react';
  3. import { Dialog } from '../../../base/dialog';
  4. import { translate } from '../../../base/i18n';
  5. import { connect } from '../../../base/redux';
  6. import AbstractMuteRemoteParticipantsVideoDialog
  7. from '../AbstractMuteRemoteParticipantsVideoDialog';
  8. /**
  9. * A React Component with the contents for a dialog that asks for confirmation
  10. * from the user before disabling a remote participants camera.
  11. *
  12. * @extends Component
  13. */
  14. class MuteRemoteParticipantsVideoDialog extends AbstractMuteRemoteParticipantsVideoDialog {
  15. /**
  16. * Implements React's {@link Component#render()}.
  17. *
  18. * @inheritdoc
  19. * @returns {ReactElement}
  20. */
  21. render() {
  22. return (
  23. <Dialog
  24. okKey = 'dialog.muteParticipantsVideoButton'
  25. onSubmit = { this._onSubmit }
  26. titleKey = 'dialog.muteParticipantsVideoTitle'
  27. width = 'small'>
  28. <div>
  29. { this.props.t('dialog.muteParticipantsVideoBody') }
  30. </div>
  31. </Dialog>
  32. );
  33. }
  34. _onSubmit: () => boolean;
  35. }
  36. export default translate(connect()(MuteRemoteParticipantsVideoDialog));