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