/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule InspectorPanel * @flow */ 'use strict'; var React = require('React'); var StyleSheet = require('StyleSheet'); var Text = require('Text'); var View = require('View'); var ElementProperties = require('ElementProperties'); var PerformanceOverlay = require('PerformanceOverlay'); var Touchable = require('Touchable'); var TouchableHighlight = require('TouchableHighlight'); var NetworkOverlay = require('NetworkOverlay'); var PropTypes = React.PropTypes; class InspectorPanel extends React.Component { renderWaiting() { if (this.props.inspecting) { return ( Tap something to inspect it ); } return Nothing is inspected; } render() { var contents; if (this.props.inspected) { contents = ( ); } else if (this.props.perfing) { contents = ( ); } else if (this.props.networking) { contents = ( ); } else { contents = ( {this.renderWaiting()} ); } return ( {!this.props.devtoolsIsOpen && contents}