14 lines
325 B
JavaScript
14 lines
325 B
JavaScript
// @flow
|
|
|
|
/**
|
|
* Indicates if the audio mute button is disabled or not.
|
|
*
|
|
* @param {Object} state - The state from the Redux store.
|
|
* @returns {boolean}
|
|
*/
|
|
export function isAudioMuteButtonDisabled(state: Object) {
|
|
const { audio } = state['features/base/media'];
|
|
|
|
return !(audio?.available && !audio?.blocked);
|
|
}
|