Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

functions.any.js 611B

12345678910111213141516171819202122
  1. // @flow
  2. import { CONFERENCE_INFO } from './constants';
  3. /**
  4. * Retrieves the conference info labels based on config values and defaults.
  5. *
  6. * @param {Object} state - The redux state.
  7. * @returns {Object} The conferenceInfo object.
  8. */
  9. export const getConferenceInfo = (state: Object) => {
  10. const { conferenceInfo } = state['features/base/config'];
  11. if (conferenceInfo) {
  12. return {
  13. alwaysVisible: conferenceInfo.alwaysVisible ?? CONFERENCE_INFO.alwaysVisible,
  14. autoHide: conferenceInfo.autoHide ?? CONFERENCE_INFO.autoHide
  15. };
  16. }
  17. return CONFERENCE_INFO;
  18. };