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.

ParticipantsPaneButton.js 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // @flow
  2. import { translate } from '../../base/i18n';
  3. import { IconParticipants } from '../../base/icons';
  4. import { connect } from '../../base/redux';
  5. import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
  6. /**
  7. * The type of the React {@code Component} props of {@link ParticipantsPaneButton}.
  8. */
  9. type Props = AbstractButtonProps & {
  10. /**
  11. * External handler for click action.
  12. */
  13. handleClick: Function
  14. };
  15. /**
  16. * Implementation of a button for accessing participants pane.
  17. */
  18. class ParticipantsPaneButton extends AbstractButton<Props, *> {
  19. accessibilityLabel = 'toolbar.accessibilityLabel.participants';
  20. icon = IconParticipants;
  21. label = 'toolbar.participants';
  22. tooltip = 'toolbar.participants';
  23. /**
  24. * Handles clicking / pressing the button, and opens the appropriate dialog.
  25. *
  26. * @protected
  27. * @returns {void}
  28. */
  29. _handleClick() {
  30. this.props.handleClick();
  31. }
  32. }
  33. export default translate(connect()(ParticipantsPaneButton));