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

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