2021-06-07 15:19:01 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { ConfirmDialog } from '../../../base/dialog';
|
|
|
|
import { translate } from '../../../base/i18n';
|
|
|
|
import { connect } from '../../../base/redux';
|
2021-11-03 10:38:12 +00:00
|
|
|
import AbstractMuteRemoteParticipantsVideoDialog, {
|
|
|
|
abstractMapStateToProps
|
|
|
|
} from '../AbstractMuteRemoteParticipantsVideoDialog';
|
2021-06-07 15:19:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Dialog to confirm a remote participant's video stop action.
|
|
|
|
*/
|
|
|
|
class MuteRemoteParticipantsVideoDialog extends AbstractMuteRemoteParticipantsVideoDialog {
|
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<ConfirmDialog
|
2022-02-03 15:45:02 +00:00
|
|
|
descriptionKey = { this.props.isVideoModerationOn
|
2021-11-03 10:38:12 +00:00
|
|
|
? 'dialog.muteParticipantsVideoDialogModerationOn'
|
|
|
|
: 'dialog.muteParticipantsVideoDialog'
|
|
|
|
}
|
2021-06-07 15:19:01 +00:00
|
|
|
onSubmit = { this._onSubmit } />
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
_onSubmit: () => boolean;
|
|
|
|
}
|
|
|
|
|
2021-11-03 10:38:12 +00:00
|
|
|
export default translate(connect(abstractMapStateToProps)(MuteRemoteParticipantsVideoDialog));
|