import React from 'react'; import { Dispatch } from 'redux'; import { GraphiteQueryEditorState } from '../state/store'; import { GraphiteTextEditor } from './GraphiteTextEditor'; import { SeriesSection } from './SeriesSection'; import { GraphiteContext } from '../state/context'; import { FunctionsSection } from './FunctionsSection'; type Props = { state: GraphiteQueryEditorState; dispatch: Dispatch; }; export function GraphiteQueryEditor({ dispatch, state }: Props) { return ( {state.target?.textEditor && } {!state.target?.textEditor && ( <> )} ); }