+ {contentOutlineVisible && (
+
+
+
+ )}
+
(this.scrollElement = scrollElement || undefined)}
+ hideHorizontalTrack
+ >
+
+ {datasourceInstance ? (
+ <>
+
+
+ {correlationsBox}
+
+
+
+
+
+
+ {({ width }) => {
+ if (width === 0) {
+ return null;
+ }
- return (
-
-
- {showPanels && (
- <>
- {showMetrics && graphResult && (
- {this.renderGraphPanel(width)}
- )}
- {showRawPrometheus && (
- {this.renderRawPrometheus(width)}
- )}
- {showTable && {this.renderTablePanel(width)}}
- {showLogs && {this.renderLogsPanel(width)}}
- {showNodeGraph && {this.renderNodeGraphPanel()}}
- {showFlameGraph && {this.renderFlameGraphPanel()}}
- {showTrace && {this.renderTraceViewPanel()}}
- {showLogsSample && {this.renderLogsSamplePanel()}}
- {showCustom && {this.renderCustom(width)}}
- {showNoData && {this.renderNoData()}}
- >
- )}
- {showRichHistory && (
-
- )}
- {showQueryInspector && (
-
- )}
-
-
- );
- }}
-
-
- ) : (
- this.renderEmptyState(styles.exploreContainer)
- )}
-
- >
+ return (
+
+
+ {showPanels && (
+ <>
+ {showMetrics && graphResult && (
+ {this.renderGraphPanel(width)}
+ )}
+ {showRawPrometheus && (
+ {this.renderRawPrometheus(width)}
+ )}
+ {showTable && {this.renderTablePanel(width)}}
+ {showLogs && {this.renderLogsPanel(width)}}
+ {showNodeGraph && (
+ {this.renderNodeGraphPanel()}
+ )}
+ {showFlameGraph && (
+ {this.renderFlameGraphPanel()}
+ )}
+ {showTrace && {this.renderTraceViewPanel()}}
+ {showLogsSample && (
+ {this.renderLogsSamplePanel()}
+ )}
+ {showCustom && {this.renderCustom(width)}}
+ {showNoData && {this.renderNoData()}}
+ >
+ )}
+ {showRichHistory && (
+
+ )}
+ {showQueryInspector && (
+
+ )}
+
+
+ );
+ }}
+
+ >
+ ) : (
+ this.renderEmptyState(styles.exploreContainer)
+ )}
+
+
+