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.

MuteEveryonesVideoDialog.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 AbstractMuteEveryonesVideoDialog, { abstractMapStateToProps, type Props }
  7. from '../AbstractMuteEveryonesVideoDialog';
  8. /**
  9. * A React Component with the contents for a dialog that asks for confirmation
  10. * from the user before disabling all remote participants cameras.
  11. *
  12. * @extends AbstractMuteEveryonesVideoDialog
  13. */
  14. class MuteEveryonesVideoDialog extends AbstractMuteEveryonesVideoDialog<Props> {
  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. titleString = { this.props.title }
  27. width = 'small'>
  28. <div>
  29. { this.props.content }
  30. </div>
  31. </Dialog>
  32. );
  33. }
  34. _onSubmit: () => boolean;
  35. }
  36. export default translate(connect(abstractMapStateToProps)(MuteEveryonesVideoDialog));