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 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. };