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.

AbstractConference.js 869B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // @flow
  2. import { shouldDisplayTileView } from '../../video-layout';
  3. /**
  4. * The type of the React {@code Component} props of {@link AbstractLabels}.
  5. */
  6. export type AbstractProps = {
  7. /**
  8. * Conference room name.
  9. *
  10. * @protected
  11. * @type {string}
  12. */
  13. _room: string,
  14. /**
  15. * Whether or not the layout should change to support tile view mode.
  16. *
  17. * @protected
  18. * @type {boolean}
  19. */
  20. _shouldDisplayTileView: boolean
  21. };
  22. /**
  23. * Maps (parts of) the redux state to the associated props of the {@link Labels}
  24. * {@code Component}.
  25. *
  26. * @param {Object} state - The redux state.
  27. * @private
  28. * @returns {AbstractProps}
  29. */
  30. export function abstractMapStateToProps(state: Object) {
  31. return {
  32. _room: state['features/base/conference'].room,
  33. _shouldDisplayTileView: shouldDisplayTileView(state)
  34. };
  35. }