2018-10-30 05:02:23 +00:00
|
|
|
/* @flow */
|
|
|
|
|
2019-01-05 16:49:21 +00:00
|
|
|
import React from 'react';
|
2017-11-09 17:23:17 +00:00
|
|
|
|
2018-12-19 18:40:17 +00:00
|
|
|
import { Dialog } from '../../../base/dialog';
|
|
|
|
import { translate } from '../../../base/i18n';
|
2019-03-21 16:38:29 +00:00
|
|
|
import { connect } from '../../../base/redux';
|
2017-11-09 17:23:17 +00:00
|
|
|
|
2019-01-05 16:49:21 +00:00
|
|
|
import AbstractMuteRemoteParticipantDialog
|
|
|
|
from '../AbstractMuteRemoteParticipantDialog';
|
2018-10-30 05:02:23 +00:00
|
|
|
|
2017-11-09 17:23:17 +00:00
|
|
|
/**
|
|
|
|
* A React Component with the contents for a dialog that asks for confirmation
|
|
|
|
* from the user before muting a remote participant.
|
|
|
|
*
|
|
|
|
* @extends Component
|
|
|
|
*/
|
2019-01-05 16:49:21 +00:00
|
|
|
class MuteRemoteParticipantDialog extends AbstractMuteRemoteParticipantDialog {
|
2017-11-09 17:23:17 +00:00
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Dialog
|
2019-03-06 17:23:53 +00:00
|
|
|
okKey = 'dialog.muteParticipantButton'
|
2017-11-09 17:23:17 +00:00
|
|
|
onSubmit = { this._onSubmit }
|
|
|
|
titleKey = 'dialog.muteParticipantTitle'
|
|
|
|
width = 'small'>
|
2019-01-05 16:49:21 +00:00
|
|
|
<div>
|
|
|
|
{ this.props.t('dialog.muteParticipantBody') }
|
|
|
|
</div>
|
2017-11-09 17:23:17 +00:00
|
|
|
</Dialog>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2019-01-05 16:49:21 +00:00
|
|
|
_onSubmit: () => boolean;
|
2017-11-09 17:23:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default translate(connect()(MuteRemoteParticipantDialog));
|