2020-07-15 10:13:28 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { ConfirmDialog } from '../../../base/dialog';
|
|
|
|
import { translate } from '../../../base/i18n';
|
|
|
|
import { connect } from '../../../base/redux';
|
2021-09-22 14:05:42 +00:00
|
|
|
import AbstractGrantModeratorDialog, { abstractMapStateToProps }
|
2020-07-15 10:13:28 +00:00
|
|
|
from '../AbstractGrantModeratorDialog';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dialog to confirm a remote participant kick action.
|
|
|
|
*/
|
|
|
|
class GrantModeratorDialog extends AbstractGrantModeratorDialog {
|
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<ConfirmDialog
|
2022-02-03 15:45:02 +00:00
|
|
|
descriptionKey = {
|
|
|
|
`${this.props.t('dialog.grantModeratorDialog',
|
|
|
|
{ participantName: this.props.participantName })}`
|
|
|
|
}
|
|
|
|
onSubmit = { this._onSubmit } />
|
2020-07-15 10:13:28 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
_onSubmit: () => boolean;
|
|
|
|
}
|
|
|
|
|
2021-09-22 14:05:42 +00:00
|
|
|
export default translate(connect(abstractMapStateToProps)(GrantModeratorDialog));
|