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 357B

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 { available, muted, unmuteBlocked } = state['features/base/media'].audio;
  10. return !available || (muted && unmuteBlocked);
  11. }