mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 16:32:13 +08:00

* i18n: everything should target @grafana/i18n * wip * chore: updates after PR feedback * Trigger build * Trigger build * Trigger build * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: revert all flaky tests * chore: some incorrect usages of useTranslate
14 lines
585 B
TypeScript
14 lines
585 B
TypeScript
import { DataSourceApi, PanelData } from '@grafana/data';
|
|
import { Trans } from '@grafana/i18n';
|
|
|
|
interface InspectMetadataTabProps {
|
|
data: PanelData;
|
|
metadataDatasource?: DataSourceApi;
|
|
}
|
|
export const InspectMetadataTab = ({ data, metadataDatasource }: InspectMetadataTabProps) => {
|
|
if (!metadataDatasource || !metadataDatasource.components?.MetadataInspector) {
|
|
return <Trans i18nKey="dashboard.inspect-meta.no-inspector">No Metadata Inspector</Trans>;
|
|
}
|
|
return <metadataDatasource.components.MetadataInspector datasource={metadataDatasource} data={data.series} />;
|
|
};
|