42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import { Dialog } from '../../../base/dialog';
|
|
import { translate } from '../../../base/i18n';
|
|
import { connect } from '../../../base/redux';
|
|
import AbstractMuteEveryonesVideoDialog, { abstractMapStateToProps, type Props }
|
|
from '../AbstractMuteEveryonesVideoDialog';
|
|
|
|
/**
|
|
* A React Component with the contents for a dialog that asks for confirmation
|
|
* from the user before disabling all remote participants cameras.
|
|
*
|
|
* @extends AbstractMuteEveryonesVideoDialog
|
|
*/
|
|
class MuteEveryonesVideoDialog extends AbstractMuteEveryonesVideoDialog<Props> {
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
return (
|
|
<Dialog
|
|
okKey = 'dialog.muteParticipantsVideoButton'
|
|
onSubmit = { this._onSubmit }
|
|
titleString = { this.props.title }
|
|
width = 'small'>
|
|
<div>
|
|
{ this.props.content }
|
|
</div>
|
|
</Dialog>
|
|
);
|
|
}
|
|
|
|
_onSubmit: () => boolean;
|
|
}
|
|
|
|
export default translate(connect(abstractMapStateToProps)(MuteEveryonesVideoDialog));
|