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 529B

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