import * as React from 'react'; import { ConfigDescriptionLink, ConfigSubSection } from '@grafana/plugin-ui'; import { Input, InlineField } from '@grafana/ui'; import { ElasticsearchOptions } from '../types'; type Props = { value: ElasticsearchOptions; onChange: (value: ElasticsearchOptions) => void; }; export const LogsConfig = (props: Props) => { const { value, onChange } = props; const changeHandler = (key: keyof ElasticsearchOptions) => (event: React.SyntheticEvent) => { onChange({ ...value, [key]: event.currentTarget.value, }); }; return ( } > ); };