Files
jitsi-meet/react/features/transcribing/components/AbstractTranscribingLabel.tsx
Robert Pintilii 09e4696c60 feat(title-bar) Update design (#12851)
Convert some files to TS
Move some styles from SCSS to JSS
Update design
2023-02-03 13:31:00 +02:00

34 lines
726 B
TypeScript

import { IReduxState } from '../../app/types';
/**
* The type of the React {@code Component} props of {@link TranscribingLabel}.
*/
export type Props = {
/**
* True if the label needs to be rendered, false otherwise.
*/
_showLabel: boolean;
/**
* Invoked to obtain translated strings.
*/
t: Function;
};
/**
* 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: IReduxState) {
return {
_showLabel: state['features/transcribing'].isTranscribing
};
}