import { SelectableValue } from '@grafana/data'; import { EditorField } from '@grafana/plugin-ui'; import { Alert, PopoverContent, Select } from '@grafana/ui'; import { VariableQueryType } from '../../types'; import { removeMarginBottom } from '../styles'; interface VariableQueryFieldProps { onChange: (value: T) => void; options: SelectableValue[]; value: T | null; label: string; inputId?: string; allowCustomValue?: boolean; isLoading?: boolean; tooltip?: PopoverContent; interactive?: boolean; error?: string; } export const VariableQueryField = ({ label, onChange, value, options, allowCustomValue = false, isLoading = false, inputId = label, tooltip, interactive, error, }: VariableQueryFieldProps) => { return ( <>