import React from 'react'; import { TextArea } from '@grafana/ui'; export interface Props { onChange: (query: string) => void; onRunQuery: () => void; query: string; } export function MQLQueryEditor({ query, onChange, onRunQuery }: React.PropsWithChildren) { const onKeyDown = (event: any) => { if (event.key === 'Enter' && (event.shiftKey || event.ctrlKey)) { event.preventDefault(); onRunQuery(); } }; return ( <>