2022-07-28 07:28:29 +00:00
|
|
|
/* eslint-disable lines-around-comment */
|
2022-08-08 09:36:06 +00:00
|
|
|
import { translate } from '../../../../base/i18n/functions';
|
2022-07-28 07:28:29 +00:00
|
|
|
// @ts-ignore
|
|
|
|
import { IconSettings } from '../../../../base/icons';
|
|
|
|
// @ts-ignore
|
|
|
|
import { AbstractButton, type AbstractButtonProps } from '../../../../base/toolbox/components';
|
|
|
|
// @ts-ignore
|
|
|
|
import { navigate }
|
|
|
|
// @ts-ignore
|
|
|
|
from '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
|
|
|
|
// @ts-ignore
|
|
|
|
import { screen } from '../../../../mobile/navigation/routes';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements an {@link AbstractButton} to open the carmode.
|
|
|
|
*/
|
|
|
|
class SettingsButton extends AbstractButton<AbstractButtonProps, any, any> {
|
|
|
|
accessibilityLabel = 'toolbar.accessibilityLabel.Settings';
|
|
|
|
icon = IconSettings;
|
|
|
|
label = 'settings.buttonLabel';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handles clicking / pressing the button, and opens the carmode mode.
|
|
|
|
*
|
|
|
|
* @private
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
_handleClick() {
|
|
|
|
return navigate(screen.settings.main);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-08 09:36:06 +00:00
|
|
|
// @ts-ignore
|
2022-07-28 07:28:29 +00:00
|
|
|
export default translate(SettingsButton);
|