import React, { InputHTMLAttributes, FunctionComponent } from 'react';
import { InlineFormLabel, Select, InlineField } from '@grafana/ui';
import { SelectableValue } from '@grafana/data';
export interface Props extends InputHTMLAttributes {
label: string;
tooltip?: string;
children?: React.ReactNode;
}
export const QueryField: FunctionComponent> = ({ label, tooltip, children }) => (
<>
{label}
{children}
>
);
export const QueryInlineField: FunctionComponent = ({ ...props }) => {
return (
);
};
interface VariableQueryFieldProps {
onChange: (value: string) => void;
options: SelectableValue[];
value: string;
label: string;
allowCustomValue?: boolean;
}
export const VariableQueryField: FunctionComponent = ({
label,
onChange,
value,
options,
allowCustomValue = false,
}) => {
return (
);
};