2019-05-29 14:39:54 +02:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import LabellingManager from '../components/Labelling/LabellingManager';
|
2019-05-02 23:12:06 +02:00
|
|
|
|
|
|
|
|
class LabellingOverlay extends Component {
|
|
|
|
|
static propTypes = {
|
|
|
|
|
visible: PropTypes.bool.isRequired,
|
2019-05-29 14:39:54 +02:00
|
|
|
};
|
2019-05-02 23:12:06 +02:00
|
|
|
|
|
|
|
|
static defaultProps = {
|
|
|
|
|
visible: false,
|
2019-05-29 14:39:54 +02:00
|
|
|
};
|
2019-05-02 23:12:06 +02:00
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
if (!this.props.visible) {
|
2019-05-29 14:39:54 +02:00
|
|
|
return null;
|
2019-05-02 23:12:06 +02:00
|
|
|
}
|
|
|
|
|
|
2019-05-29 14:39:54 +02:00
|
|
|
return <LabellingManager {...this.props} />;
|
2019-05-02 23:12:06 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-29 14:39:54 +02:00
|
|
|
export default LabellingOverlay;
|