2018-09-11 10:16:01 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { translate } from '../../base/i18n';
|
2022-09-27 07:10:28 +00:00
|
|
|
import { type Props as AbstractProps, ExpandedLabel } from '../../base/label';
|
2018-09-11 10:16:01 +00:00
|
|
|
|
|
|
|
type Props = AbstractProps & {
|
|
|
|
t: Function
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A react {@code Component} that implements an expanded label as tooltip-like
|
|
|
|
* component to explain the meaning of the {@code TranscribingLabel}.
|
|
|
|
*/
|
|
|
|
class TranscribingExpandedLabel extends ExpandedLabel<Props> {
|
|
|
|
/**
|
|
|
|
* Returns the label specific text of this {@code ExpandedLabel}.
|
|
|
|
*
|
|
|
|
* @returns {string}
|
|
|
|
*/
|
|
|
|
_getLabel() {
|
|
|
|
return this.props.t('transcribing.expandedLabel');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default translate(TranscribingExpandedLabel);
|