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

39 lines
1.0 KiB
JavaScript
Raw Normal View History

2019-01-05 16:49:21 +00:00
// @flow
import React from 'react';
import { Dialog } 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';
/**
* Dialog to confirm a remote participant kick action.
*/
class KickRemoteParticipantDialog extends AbstractKickRemoteParticipantDialog {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement}
*/
render() {
return (
<Dialog
2019-03-06 17:23:53 +00:00
okKey = 'dialog.kickParticipantButton'
2019-01-05 16:49:21 +00:00
onSubmit = { this._onSubmit }
titleKey = 'dialog.kickParticipantTitle'
width = 'small'>
<div>
{ this.props.t('dialog.kickParticipantDialog') }
</div>
</Dialog>
);
}
_onSubmit: () => boolean;
}
export default translate(connect()(KickRemoteParticipantDialog));