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.

SpeakerStatsLabels.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import PropTypes from 'prop-types';
  2. import React, { Component } from 'react';
  3. import { translate } from '../../base/i18n';
  4. /**
  5. * React component for labeling speaker stats column items.
  6. *
  7. * @extends Component
  8. */
  9. class SpeakerStatsLabels extends Component {
  10. /**
  11. * SpeakerStatsLabels component's property types.
  12. *
  13. * @static
  14. */
  15. static propTypes = {
  16. /**
  17. * The function to translate human-readable text.
  18. */
  19. t: PropTypes.func
  20. };
  21. /**
  22. * Implements React's {@link Component#render()}.
  23. *
  24. * @inheritdoc
  25. * @returns {ReactElement}
  26. */
  27. render() {
  28. const { t } = this.props;
  29. return (
  30. <div className = 'speaker-stats-item__labels'>
  31. <div className = 'speaker-stats-item__status' />
  32. <div className = 'speaker-stats-item__name'>
  33. { t('speakerStats.name') }
  34. </div>
  35. <div className = 'speaker-stats-item__time'>
  36. { t('speakerStats.speakerTime') }
  37. </div>
  38. </div>
  39. );
  40. }
  41. }
  42. export default translate(SpeakerStatsLabels);