2020-02-24 12:47:37 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { Dialog } from '../../../base/dialog';
|
|
|
|
import { translate } from '../../../base/i18n';
|
|
|
|
import { connect } from '../../../base/redux';
|
2020-11-10 14:49:38 +00:00
|
|
|
import AbstractMuteEveryoneDialog, { abstractMapStateToProps, type Props } from '../AbstractMuteEveryoneDialog';
|
2020-02-24 12:47:37 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A React Component with the contents for a dialog that asks for confirmation
|
2020-11-10 14:49:38 +00:00
|
|
|
* from the user before muting all remote participants.
|
2020-02-24 12:47:37 +00:00
|
|
|
*
|
2020-11-10 14:49:38 +00:00
|
|
|
* @extends AbstractMuteEveryoneDialog
|
2020-02-24 12:47:37 +00:00
|
|
|
*/
|
2020-11-10 14:49:38 +00:00
|
|
|
class MuteEveryoneDialog extends AbstractMuteEveryoneDialog<Props> {
|
2020-02-24 12:47:37 +00:00
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Dialog
|
|
|
|
okKey = 'dialog.muteParticipantButton'
|
|
|
|
onSubmit = { this._onSubmit }
|
2020-11-10 14:49:38 +00:00
|
|
|
titleString = { this.props.title }
|
2020-02-24 12:47:37 +00:00
|
|
|
width = 'small'>
|
|
|
|
<div>
|
2020-11-10 14:49:38 +00:00
|
|
|
{ this.props.content }
|
2020-02-24 12:47:37 +00:00
|
|
|
</div>
|
|
|
|
</Dialog>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
_onSubmit: () => boolean;
|
|
|
|
}
|
|
|
|
|
2020-11-10 14:49:38 +00:00
|
|
|
export default translate(connect(abstractMapStateToProps)(MuteEveryoneDialog));
|