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.

SettingsButton.tsx 1.0KB

123456789101112131415161718192021222324252627282930313233
  1. /* eslint-disable lines-around-comment */
  2. import { translate } from '../../../../base/i18n/functions';
  3. import { IconSettings } from '../../../../base/icons/svg';
  4. // @ts-ignore
  5. import { AbstractButton, type AbstractButtonProps } from '../../../../base/toolbox/components';
  6. // @ts-ignore
  7. import { navigate }
  8. // @ts-ignore
  9. from '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
  10. // @ts-ignore
  11. import { screen } from '../../../../mobile/navigation/routes';
  12. /**
  13. * Implements an {@link AbstractButton} to open the carmode.
  14. */
  15. class SettingsButton extends AbstractButton<AbstractButtonProps, any, any> {
  16. accessibilityLabel = 'toolbar.accessibilityLabel.Settings';
  17. icon = IconSettings;
  18. label = 'settings.buttonLabel';
  19. /**
  20. * Handles clicking / pressing the button, and opens the carmode mode.
  21. *
  22. * @private
  23. * @returns {void}
  24. */
  25. _handleClick() {
  26. return navigate(screen.settings.main);
  27. }
  28. }
  29. // @ts-ignore
  30. export default translate(SettingsButton);