Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

AbstractE2EELabel.ts 763B

1234567891011121314151617181920212223242526272829303132
  1. import { WithTranslation } from 'react-i18next';
  2. import { IReduxState } from '../../app/types';
  3. export interface IProps extends WithTranslation {
  4. /**
  5. * Custom e2ee labels.
  6. */
  7. _e2eeLabels?: any;
  8. /**
  9. * True if the label needs to be rendered, false otherwise.
  10. */
  11. _showLabel?: boolean;
  12. }
  13. /**
  14. * Maps (parts of) the redux state to the associated props of this {@code Component}.
  15. *
  16. * @param {Object} state - The redux state.
  17. * @private
  18. * @returns {IProps}
  19. */
  20. export function _mapStateToProps(state: IReduxState) {
  21. const { e2ee = {} } = state['features/base/config'];
  22. return {
  23. _e2eeLabels: e2ee.labels,
  24. _showLabel: state['features/base/participants'].numberOfParticipantsDisabledE2EE === 0
  25. };
  26. }