jiti-meet/react/features/video-menu/components/native/KickRemoteParticipantDialog.js

37 lines
1.0 KiB
JavaScript
Raw Normal View History

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
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));