2018-12-19 18:40:17 +00:00
|
|
|
// @flow
|
|
|
|
|
2019-01-05 16:49:21 +00:00
|
|
|
import React from 'react';
|
2018-12-19 18:40:17 +00:00
|
|
|
|
|
|
|
import { ConfirmDialog } from '../../../base/dialog';
|
|
|
|
import { translate } from '../../../base/i18n';
|
2019-03-21 16:38:29 +00:00
|
|
|
import { connect } from '../../../base/redux';
|
2019-01-05 16:49:21 +00:00
|
|
|
import AbstractKickRemoteParticipantDialog
|
|
|
|
from '../AbstractKickRemoteParticipantDialog';
|
2018-12-19 18:40:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Dialog to confirm a remote participant kick action.
|
|
|
|
*/
|
2019-01-05 16:49:21 +00:00
|
|
|
class KickRemoteParticipantDialog extends AbstractKickRemoteParticipantDialog {
|
2018-12-19 18:40:17 +00:00
|
|
|
/**
|
|
|
|
* Implements React's {@link Component#render()}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
* @returns {ReactElement}
|
|
|
|
*/
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<ConfirmDialog
|
2022-02-03 15:45:02 +00:00
|
|
|
cancelLabel = 'dialog.Cancel'
|
|
|
|
confirmLabel = 'dialog.kickParticipantButton'
|
|
|
|
descriptionKey = 'dialog.kickParticipantDialog'
|
|
|
|
isConfirmDestructive = { true }
|
|
|
|
onSubmit = { this._onSubmit }
|
|
|
|
title = 'dialog.kickParticipantTitle' />
|
2018-12-19 18:40:17 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
_onSubmit: () => boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default translate(connect()(KickRemoteParticipantDialog));
|