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.

RecordingLabel.web.js 921B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // @flow
  2. import React from 'react';
  3. import { connect } from 'react-redux';
  4. import { CircularLabel } from '../../base/label';
  5. import { translate } from '../../base/i18n';
  6. import AbstractRecordingLabel, {
  7. type Props,
  8. _mapStateToProps
  9. } from './AbstractRecordingLabel';
  10. /**
  11. * Implements a React {@link Component} which displays the current state of
  12. * conference recording.
  13. *
  14. * @extends {Component}
  15. */
  16. class RecordingLabel extends AbstractRecordingLabel<Props> {
  17. /**
  18. * Renders the platform specific label component.
  19. *
  20. * @inheritdoc
  21. */
  22. _renderLabel() {
  23. return (
  24. <div>
  25. <CircularLabel
  26. className = { this.props.mode }
  27. label = { this.props.t(this._getLabelKey()) } />
  28. </div>
  29. );
  30. }
  31. _getLabelKey: () => ?string
  32. }
  33. export default translate(connect(_mapStateToProps)(RecordingLabel));