import React from 'react'; import { Input, InlineField, FieldSet } 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 (
); };