2018-05-22 19:47:10 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { Component } from 'react';
|
|
|
|
|
|
|
|
export type Props = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether or not the conference is in audio only mode.
|
|
|
|
*/
|
|
|
|
_audioOnly: boolean,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Invoked to obtain translated strings.
|
|
|
|
*/
|
|
|
|
t: Function
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Abstract class for the {@code VideoQualityLabel} component.
|
|
|
|
*/
|
|
|
|
export default class AbstractVideoQualityLabel<P: Props> extends Component<P> {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Maps (parts of) the Redux state to the associated
|
|
|
|
* {@code AbstractVideoQualityLabel}'s props.
|
|
|
|
*
|
|
|
|
* @param {Object} state - The Redux state.
|
|
|
|
* @private
|
|
|
|
* @returns {{
|
|
|
|
* _audioOnly: boolean
|
|
|
|
* }}
|
|
|
|
*/
|
|
|
|
export function _abstractMapStateToProps(state: Object) {
|
2019-07-31 12:47:52 +00:00
|
|
|
const { enabled: audioOnly } = state['features/base/audio-only'];
|
2018-05-22 19:47:10 +00:00
|
|
|
|
|
|
|
return {
|
|
|
|
_audioOnly: audioOnly
|
|
|
|
};
|
|
|
|
}
|