mirror of https://github.com/grafana/grafana.git
19 lines
488 B
TypeScript
19 lines
488 B
TypeScript
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
|
import React from 'react';
|
|
|
|
export type Props = DataSourcePluginOptionsEditorProps;
|
|
|
|
export const ConfigEditor: React.FC<Props> = ({ options, onOptionsChange }) => {
|
|
return (
|
|
<>
|
|
<DataSourceHttpSettings
|
|
defaultUrl={''}
|
|
dataSourceConfig={options}
|
|
showAccessOptions={true}
|
|
onChange={onOptionsChange}
|
|
/>
|
|
</>
|
|
);
|
|
};
|