import { css } from '@emotion/css'; import React from 'react'; import { GrafanaTheme2, toOption } from '@grafana/data'; import { EditorRows, FlexItem } from '@grafana/experimental'; import { IconButton, Select, useStyles2 } from '@grafana/ui'; import { PrometheusDatasource } from '../../datasource'; import { binaryScalarDefs } from '../binaryScalarOperations'; import { AutoSizeInput } from '../shared/AutoSizeInput'; import { PromVisualQueryBinary } from '../types'; import { PromQueryBuilder } from './PromQueryBuilder'; export interface Props { nestedQuery: PromVisualQueryBinary; datasource: PrometheusDatasource; index: number; onChange: (index: number, update: PromVisualQueryBinary) => void; onRemove: (index: number) => void; onRunQuery: () => void; } export const NestedQuery = React.memo(({ nestedQuery, index, datasource, onChange, onRemove, onRunQuery }) => { const styles = useStyles2(getStyles); return (
Operator