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 { AutoSizeInput } from 'app/plugins/datasource/prometheus/querybuilder/shared/AutoSizeInput'; import { LokiDatasource } from '../../datasource'; import { binaryScalarDefs } from '../binaryScalarOperations'; import { LokiVisualQueryBinary } from '../types'; import { LokiQueryBuilder } from './LokiQueryBuilder'; export interface Props { nestedQuery: LokiVisualQueryBinary; datasource: LokiDatasource; index: number; onChange: (index: number, update: LokiVisualQueryBinary) => void; onRemove: (index: number) => void; onRunQuery: () => void; } export const NestedQuery = React.memo(({ nestedQuery, index, datasource, onChange, onRemove, onRunQuery }) => { const styles = useStyles2(getStyles); return (
Operator