Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

MuteRemoteParticipantsVideoDialog.js 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. abstractMapStateToProps
  8. } from '../AbstractMuteRemoteParticipantsVideoDialog';
  9. /**
  10. * A React Component with the contents for a dialog that asks for confirmation
  11. * from the user before disabling a remote participants camera.
  12. *
  13. * @augments Component
  14. */
  15. class MuteRemoteParticipantsVideoDialog extends AbstractMuteRemoteParticipantsVideoDialog {
  16. /**
  17. * Implements React's {@link Component#render()}.
  18. *
  19. * @inheritdoc
  20. * @returns {ReactElement}
  21. */
  22. render() {
  23. return (
  24. <Dialog
  25. okKey = 'dialog.muteParticipantsVideoButton'
  26. onSubmit = { this._onSubmit }
  27. titleKey = 'dialog.muteParticipantsVideoTitle'
  28. width = 'small'>
  29. <div>
  30. {this.props.t(this.props.isVideoModerationOn
  31. ? 'dialog.muteParticipantsVideoBodyModerationOn'
  32. : 'dialog.muteParticipantsVideoBody'
  33. ) }
  34. </div>
  35. </Dialog>
  36. );
  37. }
  38. _onSubmit: () => boolean;
  39. }
  40. export default translate(connect(abstractMapStateToProps)(MuteRemoteParticipantsVideoDialog));