// Libraries import React, { memo } from 'react'; // Types import { QueryEditorProps } from '@grafana/data'; import { InlineFormLabel } from '@grafana/ui'; import { LokiDatasource } from '../datasource'; import { LokiQuery, LokiOptions } from '../types'; import { LokiQueryField } from './LokiQueryField'; type Props = QueryEditorProps; export function LokiQueryEditor(props: Props) { const { range, query, data, datasource, onChange, onRunQuery } = props; const onLegendChange = (e: React.SyntheticEvent) => { const nextQuery = { ...query, legendFormat: e.currentTarget.value }; onChange(nextQuery); }; const legendField = (
Legend
); return ( ); } export default memo(LokiQueryEditor);