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