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.

AbstractE2EELabel.js 662B

12345678910111213141516171819202122232425262728293031323334
  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. return {
  25. _e2eeLabels: state['features/base/config'].e2eeLabels,
  26. _showLabel: state['features/e2ee'].everyoneEnabledE2EE
  27. };
  28. }