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.0KB

1234567891011121314151617181920212223242526272829303132
  1. import React from 'react';
  2. import { connect } from 'react-redux';
  3. import ConfirmDialog from '../../../base/dialog/components/native/ConfirmDialog';
  4. import { translate } from '../../../base/i18n/functions';
  5. import AbstractMuteRemoteParticipantsVideoDialog, {
  6. abstractMapStateToProps
  7. } from '../AbstractMuteRemoteParticipantsVideoDialog';
  8. /**
  9. * Dialog to confirm a remote participant's video stop action.
  10. */
  11. class MuteRemoteParticipantsVideoDialog extends AbstractMuteRemoteParticipantsVideoDialog {
  12. /**
  13. * Implements React's {@link Component#render()}.
  14. *
  15. * @inheritdoc
  16. * @returns {ReactElement}
  17. */
  18. render() {
  19. return (
  20. <ConfirmDialog
  21. descriptionKey = { this.props.isVideoModerationOn
  22. ? 'dialog.muteParticipantsVideoDialogModerationOn'
  23. : 'dialog.muteParticipantsVideoDialog'
  24. }
  25. onSubmit = { this._onSubmit } />
  26. );
  27. }
  28. }
  29. export default translate(connect(abstractMapStateToProps)(MuteRemoteParticipantsVideoDialog));