import React, { PureComponent } from 'react'; import { QueryEditorProps } from '@grafana/data'; import { CloudWatchDatasource } from '../datasource'; import { isCloudWatchMetricsQuery } from '../guards'; import { CloudWatchJsonData, CloudWatchQuery } from '../types'; import { MetricsQueryEditor } from '././MetricsQueryEditor/MetricsQueryEditor'; import LogsQueryEditor from './LogsQueryEditor'; export type Props = QueryEditorProps; export class PanelQueryEditor extends PureComponent { render() { const { query } = this.props; return ( <> {isCloudWatchMetricsQuery(query) ? ( ) : ( )} ); } }