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.

MuteRemoteParticipantDialog.js 1.1KB

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 AbstractMuteRemoteParticipantDialog
  7. from '../AbstractMuteRemoteParticipantDialog';
  8. /**
  9. * A React Component with the contents for a dialog that asks for confirmation
  10. * from the user before muting a remote participant.
  11. *
  12. * @extends Component
  13. */
  14. class MuteRemoteParticipantDialog extends AbstractMuteRemoteParticipantDialog {
  15. /**
  16. * Implements React's {@link Component#render()}.
  17. *
  18. * @inheritdoc
  19. * @returns {ReactElement}
  20. */
  21. render() {
  22. return (
  23. <Dialog
  24. okKey = 'dialog.muteParticipantButton'
  25. onSubmit = { this._onSubmit }
  26. titleKey = 'dialog.muteParticipantTitle'
  27. width = 'small'>
  28. <div>
  29. { this.props.t('dialog.muteParticipantBody') }
  30. </div>
  31. </Dialog>
  32. );
  33. }
  34. _onSubmit: () => boolean;
  35. }
  36. export default translate(connect()(MuteRemoteParticipantDialog));