您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AbstractE2EELabel.js 691B

123456789101112131415161718192021222324252627282930313233343536
  1. // @flow
  2. export type Props = {
  3. /**
  4. * Custom e2ee labels.
  5. */
  6. _e2eeLabels?: Object;
  7. /**
  8. * True if the label needs to be rendered, false otherwise.
  9. */
  10. _showLabel: boolean,
  11. /**
  12. * Invoked to obtain translated strings.
  13. */
  14. t: Function
  15. };
  16. /**
  17. * Maps (parts of) the redux state to the associated props of this {@code Component}.
  18. *
  19. * @param {Object} state - The redux state.
  20. * @private
  21. * @returns {Props}
  22. */
  23. export function _mapStateToProps(state: Object) {
  24. const { e2ee = {} } = state['features/base/config'];
  25. return {
  26. _e2eeLabels: e2ee.labels,
  27. _showLabel: state['features/e2ee'].everyoneEnabledE2EE
  28. };
  29. }