2022-11-22 13:56:37 +00:00
|
|
|
import { IStore } from '../../app/types';
|
|
|
|
import { IconConnection } from '../../base/icons/svg';
|
|
|
|
// eslint-disable-next-line lines-around-comment
|
|
|
|
// @ts-ignore
|
|
|
|
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
2021-11-10 17:49:53 +00:00
|
|
|
|
|
|
|
type Props = AbstractButtonProps & {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* True if the navigation bar should be visible.
|
|
|
|
*/
|
2022-11-22 13:56:37 +00:00
|
|
|
dispatch: IStore['dispatch'];
|
2021-11-10 17:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implementation of a button for opening speaker stats dialog.
|
|
|
|
*/
|
2022-11-22 13:56:37 +00:00
|
|
|
class AbstractSpeakerStatsButton extends AbstractButton<Props, any, any> {
|
2021-11-10 17:49:53 +00:00
|
|
|
accessibilityLabel = 'toolbar.accessibilityLabel.speakerStats';
|
2022-11-08 10:24:32 +00:00
|
|
|
icon = IconConnection;
|
2021-11-10 17:49:53 +00:00
|
|
|
label = 'toolbar.speakerStats';
|
|
|
|
tooltip = 'toolbar.speakerStats';
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AbstractSpeakerStatsButton;
|