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.

AbstractTranscribingLabel.js 682B

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