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.

VideoQualityExpandedLabel.native.ts 960B

12345678910111213141516171819202122232425262728293031323334
  1. import { WithTranslation } from 'react-i18next';
  2. import { translate } from '../../base/i18n/functions';
  3. import ExpandedLabel, { IProps as AbstractProps } from '../../base/label/components/native/ExpandedLabel';
  4. import { AUD_LABEL_COLOR } from './styles';
  5. type Props = AbstractProps & WithTranslation;
  6. /**
  7. * A react {@code Component} that implements an expanded label as tooltip-like
  8. * component to explain the meaning of the {@code VideoQualityLabel}.
  9. */
  10. class VideoQualityExpandedLabel extends ExpandedLabel<Props> {
  11. /**
  12. * Returns the color this expanded label should be rendered with.
  13. *
  14. * @returns {string}
  15. */
  16. _getColor() {
  17. return AUD_LABEL_COLOR;
  18. }
  19. /**
  20. * Returns the label specific text of this {@code ExpandedLabel}.
  21. *
  22. * @returns {string}
  23. */
  24. _getLabel() {
  25. return this.props.t('videoStatus.audioOnlyExpanded');
  26. }
  27. }
  28. export default translate(VideoQualityExpandedLabel);