2019-01-05 16:49:21 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-10-11 08:24:11 +00:00
|
|
|
import { translate } from '../../../base/i18n/functions';
|
|
|
|
import { connect } from '../../../base/redux/functions';
|
|
|
|
import Dialog from '../../../base/ui/components/web/Dialog';
|
|
|
|
import AbstractKickRemoteParticipantDialog from '../AbstractKickRemoteParticipantDialog';
|
2019-01-05 16:49:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Dialog to confirm a remote participant kick action.
|
|
|
|
*/
|
|
|
|
class KickRemoteParticipantDialog extends AbstractKickRemoteParticipantDialog {
|
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Dialog
|
2022-10-11 08:24:11 +00:00
|
|
|
ok = {{ translationKey: 'dialog.kickParticipantButton' }}
|
2019-01-05 16:49:21 +00:00
|
|
|
onSubmit = { this._onSubmit }
|
2022-10-11 08:24:11 +00:00
|
|
|
titleKey = 'dialog.kickParticipantTitle'>
|
2019-01-05 16:49:21 +00:00
|
|
|
<div>
|
|
|
|
{ this.props.t('dialog.kickParticipantDialog') }
|
|
|
|
</div>
|
|
|
|
</Dialog>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default translate(connect()(KickRemoteParticipantDialog));
|