mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
* use labels correctly * fix opentsdb labels * fix unit tests * use aria-label instead of data-testid
20 lines
508 B
TypeScript
20 lines
508 B
TypeScript
import React from 'react';
|
|
|
|
import { PluginState } from '@grafana/data';
|
|
import { PluginStateInfo } from 'app/features/plugins/components/PluginStateInfo';
|
|
|
|
export type Props = {
|
|
state?: PluginState;
|
|
};
|
|
|
|
export function DataSourcePluginState({ state }: Props) {
|
|
return (
|
|
<div className="gf-form">
|
|
<div className="gf-form-label width-10">Plugin state</div>
|
|
<div className="gf-form-label gf-form-label--transparent">
|
|
<PluginStateInfo state={state} />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|