2018-05-22 21:47:10 +02:00
|
|
|
import { Component } from 'react';
|
2023-03-29 12:54:56 +03:00
|
|
|
import { WithTranslation } from 'react-i18next';
|
2018-05-22 21:47:10 +02:00
|
|
|
|
2023-03-29 12:54:56 +03:00
|
|
|
import { IReduxState } from '../../app/types';
|
2018-05-22 21:47:10 +02:00
|
|
|
|
2023-03-29 12:54:56 +03:00
|
|
|
export interface IProps extends WithTranslation {
|
2018-05-22 21:47:10 +02:00
|
|
|
|
|
|
|
|
/**
|
2023-03-29 12:54:56 +03:00
|
|
|
* Whether or not the conference is in audio only mode.
|
2018-05-22 21:47:10 +02:00
|
|
|
*/
|
2023-03-29 12:54:56 +03:00
|
|
|
_audioOnly: boolean;
|
|
|
|
|
}
|
2018-05-22 21:47:10 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Abstract class for the {@code VideoQualityLabel} component.
|
|
|
|
|
*/
|
2023-03-29 12:54:56 +03:00
|
|
|
export default class AbstractVideoQualityLabel<P extends IProps> extends Component<P> {
|
2018-05-22 21:47:10 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Maps (parts of) the Redux state to the associated
|
|
|
|
|
* {@code AbstractVideoQualityLabel}'s props.
|
|
|
|
|
*
|
|
|
|
|
* @param {Object} state - The Redux state.
|
|
|
|
|
* @private
|
|
|
|
|
* @returns {{
|
|
|
|
|
* _audioOnly: boolean
|
|
|
|
|
* }}
|
|
|
|
|
*/
|
2023-03-29 12:54:56 +03:00
|
|
|
export function _abstractMapStateToProps(state: IReduxState) {
|
2019-07-31 14:47:52 +02:00
|
|
|
const { enabled: audioOnly } = state['features/base/audio-only'];
|
2018-05-22 21:47:10 +02:00
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
_audioOnly: audioOnly
|
|
|
|
|
};
|
|
|
|
|
}
|