const React = require('react');
const Status = React.createClass({
renderConnectionState: function() {
return (
Scope is disconnected
);
},
render: function() {
const isDisconnected = this.props.connectionState === 'disconnected';
return (
{isDisconnected && this.renderConnectionState()}
);
}
});
module.exports = Status;