You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

KickRemoteParticipantDialog.js 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // @flow
  2. import React from 'react';
  3. import { Dialog } from '../../../base/dialog';
  4. import { translate } from '../../../base/i18n';
  5. import { connect } from '../../../base/redux';
  6. import AbstractKickRemoteParticipantDialog
  7. from '../AbstractKickRemoteParticipantDialog';
  8. /**
  9. * Dialog to confirm a remote participant kick action.
  10. */
  11. class KickRemoteParticipantDialog extends AbstractKickRemoteParticipantDialog {
  12. /**
  13. * Implements React's {@link Component#render()}.
  14. *
  15. * @inheritdoc
  16. * @returns {ReactElement}
  17. */
  18. render() {
  19. return (
  20. <Dialog
  21. okKey = 'dialog.kickParticipantButton'
  22. onSubmit = { this._onSubmit }
  23. titleKey = 'dialog.kickParticipantTitle'
  24. width = 'small'>
  25. <div>
  26. { this.props.t('dialog.kickParticipantDialog') }
  27. </div>
  28. </Dialog>
  29. );
  30. }
  31. _onSubmit: () => boolean;
  32. }
  33. export default translate(connect()(KickRemoteParticipantDialog));