2018-05-16 14:00:16 +00:00
|
|
|
// @flow
|
|
|
|
|
2018-05-23 13:44:58 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { connect } from 'react-redux';
|
2017-08-25 16:45:30 +00:00
|
|
|
|
2018-05-16 14:00:16 +00:00
|
|
|
import { CircularLabel } from '../../base/label';
|
2017-08-25 16:45:30 +00:00
|
|
|
import { translate } from '../../base/i18n';
|
2018-05-16 14:00:16 +00:00
|
|
|
|
2018-05-23 13:44:58 +00:00
|
|
|
import AbstractRecordingLabel, {
|
2018-06-14 09:15:36 +00:00
|
|
|
type Props,
|
|
|
|
_mapStateToProps
|
2018-05-23 13:44:58 +00:00
|
|
|
} from './AbstractRecordingLabel';
|
|
|
|
|
2017-08-25 16:45:30 +00:00
|
|
|
/**
|
|
|
|
* Implements a React {@link Component} which displays the current state of
|
2018-05-16 14:00:16 +00:00
|
|
|
* conference recording.
|
2017-08-25 16:45:30 +00:00
|
|
|
*
|
|
|
|
* @extends {Component}
|
|
|
|
*/
|
2018-06-14 09:15:36 +00:00
|
|
|
class RecordingLabel extends AbstractRecordingLabel<Props> {
|
2017-08-25 16:45:30 +00:00
|
|
|
/**
|
2018-06-14 09:15:36 +00:00
|
|
|
* Renders the platform specific label component.
|
2017-08-25 16:45:30 +00:00
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
*/
|
2018-06-14 09:15:36 +00:00
|
|
|
_renderLabel() {
|
2017-08-25 16:45:30 +00:00
|
|
|
return (
|
2018-06-14 09:15:36 +00:00
|
|
|
<div>
|
|
|
|
<CircularLabel
|
|
|
|
className = { this.props.mode }
|
|
|
|
label = { this.props.t(this._getLabelKey()) } />
|
2018-04-26 21:24:52 +00:00
|
|
|
</div>
|
2017-08-25 16:45:30 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2018-06-14 09:15:36 +00:00
|
|
|
_getLabelKey: () => ?string
|
2018-05-23 13:44:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default translate(connect(_mapStateToProps)(RecordingLabel));
|