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

123456789101112131415161718192021222324252627282930313233343536
  1. // @flow
  2. import React from 'react';
  3. import { ConfirmDialog } 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. <ConfirmDialog
  21. cancelLabel = 'dialog.Cancel'
  22. confirmLabel = 'dialog.kickParticipantButton'
  23. descriptionKey = 'dialog.kickParticipantDialog'
  24. isConfirmDestructive = { true }
  25. onSubmit = { this._onSubmit }
  26. title = 'dialog.kickParticipantTitle' />
  27. );
  28. }
  29. _onSubmit: () => boolean;
  30. }
  31. export default translate(connect()(KickRemoteParticipantDialog));