mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
21 lines
643 B
TypeScript
21 lines
643 B
TypeScript
import React from 'react';
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
|
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
|
import { OpenTsdbDetails } from './OpenTsdbDetails';
|
|
import { OpenTsdbOptions } from '../types';
|
|
|
|
export const ConfigEditor = (props: DataSourcePluginOptionsEditorProps<OpenTsdbOptions>) => {
|
|
const { options, onOptionsChange } = props;
|
|
|
|
return (
|
|
<>
|
|
<DataSourceHttpSettings
|
|
defaultUrl="http://localhost:4242"
|
|
dataSourceConfig={options}
|
|
onChange={onOptionsChange}
|
|
/>
|
|
<OpenTsdbDetails value={options} onChange={onOptionsChange} />
|
|
</>
|
|
);
|
|
};
|