2020-07-15 10:13:28 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React from 'react';
|
2021-09-22 14:05:42 +00:00
|
|
|
import { Text } from 'react-native';
|
2020-07-15 10:13:28 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
contentKey = 'dialog.grantModeratorDialog'
|
2021-09-22 14:05:42 +00:00
|
|
|
onSubmit = { this._onSubmit }>
|
|
|
|
<Text>
|
|
|
|
{`${this.props.t('dialog.grantModeratorDialog', { participantName: this.props.participantName })}`}
|
|
|
|
</Text>
|
|
|
|
</ConfirmDialog>
|
2020-07-15 10:13:28 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
_onSubmit: () => boolean;
|
|
|
|
}
|
|
|
|
|
2021-09-22 14:05:42 +00:00
|
|
|
export default translate(connect(abstractMapStateToProps)(GrantModeratorDialog));
|