jiti-meet/react/features/toolbox/functions.any.js

14 lines
325 B
JavaScript
Raw Normal View History

// @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);
}