import { Tab, Tabs } from 'react-bootstrap'; import QueryLog from './QueryLog'; import ResultSet from './ResultSet'; import React from 'react'; class SouthPane extends React.Component { render() { let results; if (this.props.latestQuery) { if (this.props.latestQuery.state === 'running') { results = ( Loading.. ); } else if (this.props.latestQuery.state === 'failed') { results =
{this.props.latestQuery.msg}
; } else if (this.props.latestQuery.state === 'success') { results = ; } } else { results =
Run a query to display results here
; } return (
{results}
); } } SouthPane.propTypes = { latestQuery: React.PropTypes.object, }; SouthPane.defaultProps = { }; export default SouthPane;