You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
562 B
18 lines
562 B
import React, { memo } from 'react';
|
|
import { CoreApp } from '@grafana/data';
|
|
import { LokiQueryEditorProps } from './types';
|
|
import { LokiQueryEditor } from './LokiQueryEditor';
|
|
import { LokiQueryEditorForAlerting } from './LokiQueryEditorForAlerting';
|
|
|
|
export function LokiQueryEditorByApp(props: LokiQueryEditorProps) {
|
|
const { app } = props;
|
|
|
|
switch (app) {
|
|
case CoreApp.CloudAlerting:
|
|
return <LokiQueryEditorForAlerting {...props} />;
|
|
default:
|
|
return <LokiQueryEditor {...props} />;
|
|
}
|
|
}
|
|
|
|
export default memo(LokiQueryEditorByApp);
|
|
|