mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
19 lines
510 B
TypeScript
19 lines
510 B
TypeScript
|
|
import React from 'react';
|
||
|
|
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
||
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
||
|
|
|
||
|
|
export type Props = DataSourcePluginOptionsEditorProps;
|
||
|
|
|
||
|
|
export const ConfigEditor: React.FC<Props> = ({ options, onOptionsChange }) => {
|
||
|
|
return (
|
||
|
|
<>
|
||
|
|
<DataSourceHttpSettings
|
||
|
|
defaultUrl={'http://localhost:16686'}
|
||
|
|
dataSourceConfig={options}
|
||
|
|
showAccessOptions={true}
|
||
|
|
onChange={onOptionsChange}
|
||
|
|
/>
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
};
|