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.

MuteRemoteParticipantsVideoDialog.tsx 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import React from 'react';
  2. import { translate } from '../../../base/i18n/functions';
  3. import { connect } from '../../../base/redux/functions';
  4. import Dialog from '../../../base/ui/components/web/Dialog';
  5. import AbstractMuteRemoteParticipantsVideoDialog, {
  6. abstractMapStateToProps
  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. * @augments 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. ok = {{ translationKey: 'dialog.muteParticipantsVideoButton' }}
  25. onSubmit = { this._onSubmit }
  26. titleKey = 'dialog.muteParticipantsVideoTitle'>
  27. <div>
  28. {this.props.t(this.props.isVideoModerationOn
  29. ? 'dialog.muteParticipantsVideoBodyModerationOn'
  30. : 'dialog.muteParticipantsVideoBody'
  31. ) }
  32. </div>
  33. </Dialog>
  34. );
  35. }
  36. }
  37. // @ts-ignore
  38. export default translate(connect(abstractMapStateToProps)(MuteRemoteParticipantsVideoDialog));