mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
664b13d83e
* Move InspectSubtitle to grafana/ui * Move inspect elements to features/inspector * Move InspectJSON and use it also in Explore * Move and use QueryInspector * Move all to features/inspector * WIP Data tab implementation * Process dataframes for explores inspector * Clean up * Update test * Clean up * Fix Explore Inspector button name
14 lines
533 B
TypeScript
14 lines
533 B
TypeScript
import React from 'react';
|
|
import { DataSourceApi, PanelData } from '@grafana/data';
|
|
|
|
interface InspectMetadataTabProps {
|
|
data: PanelData;
|
|
metadataDatasource?: DataSourceApi;
|
|
}
|
|
export const InspectMetadataTab: React.FC<InspectMetadataTabProps> = ({ data, metadataDatasource }) => {
|
|
if (!metadataDatasource || !metadataDatasource.components?.MetadataInspector) {
|
|
return <div>No Metadata Inspector</div>;
|
|
}
|
|
return <metadataDatasource.components.MetadataInspector datasource={metadataDatasource} data={data.series} />;
|
|
};
|