export var actionMute = function actionMute(isMyself, hasAudio, muteAudioPermission, startAudioPermission, requestStartAudioPermission) {
  var isShowActionAudio = true;
  var actionAudioTag = '';
  if (isMyself) {
    if (hasAudio) {
      if (muteAudioPermission) {
        isShowActionAudio = true;
        actionAudioTag = 'fmt_participants_member_button_mute';
      } else {
        isShowActionAudio = false;
      }
    } else {
      if (startAudioPermission) {
        isShowActionAudio = true;
        actionAudioTag = 'fmt_participants_member_button_unmute';
      } else {
        isShowActionAudio = false;
      }
    }
  } else {
    if (hasAudio) {
      if (muteAudioPermission) {
        isShowActionAudio = true;
        actionAudioTag = 'fmt_participants_member_button_mute';
      } else {
        isShowActionAudio = false;
      }
    } else {
      if (requestStartAudioPermission) {
        actionAudioTag = 'fmt_attendies_options_applyunmute';
        isShowActionAudio = true;
      } else {
        isShowActionAudio = false;
      }
    }
  }
  return {
    isShowActionAudio: isShowActionAudio,
    actionAudioTag: actionAudioTag
  };
};