import React, { useEffect, useState } from 'react'; import { QueryEditorProps, SelectableValue, TimeRange } from '@grafana/data'; import { InlineField, InlineFieldRow, LoadingPlaceholder, Select } from '@grafana/ui'; import { ProfileTypesCascader, useProfileTypes } from './QueryEditor/ProfileTypesCascader'; import { PyroscopeDataSource } from './datasource'; import { Query, VariableQuery } from './types'; export function VariableQueryEditor(props: QueryEditorProps) { return ( <> The Pyroscope data source plugin provides the following query types for template variables } > props.onChange(option.value)} value={props.value} /> ); } function ProfileTypeRow(props: { datasource: PyroscopeDataSource; onChange: (val: string) => void; initialValue?: string; range?: TimeRange; }) { const profileTypes = useProfileTypes(props.datasource, props.range); return ( Select profile type for which to retrieve available labels} > {profileTypes ? ( ) : ( )} ); }