import React, { FormEvent, PureComponent } from 'react'; import { selectors } from '@grafana/e2e-selectors'; import { VerticalGroup } from '@grafana/ui'; import { VariableSectionHeader } from '../editor/VariableSectionHeader'; import { VariableTextField } from '../editor/VariableTextField'; import { VariableEditorProps } from '../editor/types'; import { ConstantVariableModel } from '../types'; export interface Props extends VariableEditorProps {} export class ConstantVariableEditor extends PureComponent { onChange = (event: FormEvent) => { this.props.onPropChange({ propName: 'query', propValue: event.currentTarget.value, }); }; onBlur = (event: FormEvent) => { this.props.onPropChange({ propName: 'query', propValue: event.currentTarget.value, updateOptions: true, }); }; render() { return ( ); } }