33 lines
837 B
JavaScript
33 lines
837 B
JavaScript
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import { ConfirmDialog } from '../../../base/dialog';
|
|
import { translate } from '../../../base/i18n';
|
|
import { connect } from '../../../base/redux';
|
|
import AbstractMuteRemoteParticipantDialog
|
|
from '../AbstractMuteRemoteParticipantDialog';
|
|
|
|
/**
|
|
* Dialog to confirm a remote participant mute action.
|
|
*/
|
|
class MuteRemoteParticipantDialog extends AbstractMuteRemoteParticipantDialog {
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
return (
|
|
<ConfirmDialog
|
|
contentKey = 'dialog.muteParticipantDialog'
|
|
onSubmit = { this._onSubmit } />
|
|
);
|
|
}
|
|
|
|
_onSubmit: () => boolean;
|
|
}
|
|
|
|
export default translate(connect()(MuteRemoteParticipantDialog));
|