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.tsx 1013B

123456789101112131415161718192021222324252627282930
  1. import { connect } from 'react-redux';
  2. import { translate } from '../../../base/i18n/functions';
  3. import { IconUsers } from '../../../base/icons/svg';
  4. import AbstractButton, { IProps as AbstractButtonProps } from '../../../base/toolbox/components/AbstractButton';
  5. import { navigate }
  6. from '../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
  7. import { screen } from '../../../mobile/navigation/routes';
  8. /**
  9. * Implements an {@link AbstractButton} to open the participants panel.
  10. */
  11. class ParticipantsPaneButton extends AbstractButton<AbstractButtonProps> {
  12. accessibilityLabel = 'toolbar.accessibilityLabel.participants';
  13. icon = IconUsers;
  14. label = 'toolbar.participants';
  15. /**
  16. * Handles clicking / pressing the button, and opens the participants panel.
  17. *
  18. * @private
  19. * @returns {void}
  20. */
  21. _handleClick() {
  22. return navigate(screen.conference.participants);
  23. }
  24. }
  25. export default translate(connect()(ParticipantsPaneButton));