You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.any.js 325B

12345678910111213
  1. // @flow
  2. /**
  3. * Indicates if the audio mute button is disabled or not.
  4. *
  5. * @param {Object} state - The state from the Redux store.
  6. * @returns {boolean}
  7. */
  8. export function isAudioMuteButtonDisabled(state: Object) {
  9. const { audio } = state['features/base/media'];
  10. return !(audio?.available && !audio?.blocked);
  11. }