Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
24 lines
1 KiB
TypeScript
24 lines
1 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { AppMountParameters, CoreStart } from 'kibana/public';
|
|
import { createContext } from 'react';
|
|
import { ObservabilityPublicPluginsStart } from '../plugin';
|
|
import { ConfigSchema } from '..';
|
|
import { ObservabilityRuleTypeRegistry } from '../rules/create_observability_rule_type_registry';
|
|
import type { LazyObservabilityPageTemplateProps } from '../components/shared/page_template/lazy_page_template';
|
|
|
|
export interface PluginContextValue {
|
|
appMountParameters: AppMountParameters;
|
|
config: ConfigSchema;
|
|
core: CoreStart;
|
|
plugins: ObservabilityPublicPluginsStart;
|
|
observabilityRuleTypeRegistry: ObservabilityRuleTypeRegistry;
|
|
ObservabilityPageTemplate: React.ComponentType<LazyObservabilityPageTemplateProps>;
|
|
}
|
|
|
|
export const PluginContext = createContext({} as PluginContextValue);
|