mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
26 lines
718 B
TypeScript
26 lines
718 B
TypeScript
import React from 'react';
|
|
|
|
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
|
import { config } from '@grafana/runtime';
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
|
|
|
import { ParcaDataSourceOptions } from './types';
|
|
|
|
interface Props extends DataSourcePluginOptionsEditorProps<ParcaDataSourceOptions> {}
|
|
|
|
export const ConfigEditor = (props: Props) => {
|
|
const { options, onOptionsChange } = props;
|
|
|
|
return (
|
|
<>
|
|
<DataSourceHttpSettings
|
|
defaultUrl={'http://localhost:7070'}
|
|
dataSourceConfig={options}
|
|
showAccessOptions={false}
|
|
onChange={onOptionsChange}
|
|
secureSocksDSProxyEnabled={config.secureSocksDSProxyEnabled}
|
|
/>
|
|
</>
|
|
);
|
|
};
|