2018-08-16 19:34:26 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The type of the React {@code Component} props of {@link TranscribingLabel}.
|
|
|
|
*/
|
|
|
|
export type Props = {
|
|
|
|
|
2018-09-12 15:10:12 +00:00
|
|
|
/**
|
|
|
|
* True if the label needs to be rendered, false otherwise.
|
|
|
|
*/
|
|
|
|
_showLabel: boolean,
|
|
|
|
|
2018-08-16 19:34:26 +00:00
|
|
|
/**
|
|
|
|
* Invoked to obtain translated strings.
|
|
|
|
*/
|
|
|
|
t: Function
|
|
|
|
};
|
2018-09-12 15:10:12 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Maps (parts of) the redux state to the associated props of the
|
|
|
|
* {@link AbstractTranscribingLabel} {@code Component}.
|
|
|
|
*
|
|
|
|
* @param {Object} state - The redux state.
|
|
|
|
* @private
|
|
|
|
* @returns {{
|
|
|
|
* _showLabel: boolean
|
|
|
|
* }}
|
|
|
|
*/
|
|
|
|
export function _mapStateToProps(state: Object) {
|
|
|
|
return {
|
|
|
|
_showLabel: state['features/transcribing'].isTranscribing
|
|
|
|
};
|
|
|
|
}
|