kibana/x-pack/plugins/observability/public/context/plugin_context.tsx
Cauê Marcondes d8b4472a72
[Observability] Persist time range across apps (#79258)
* using kibana persisted date when available to set the date time

* fixing types

* adding setTime when changin the dates in the url

* renaming

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 13:29:15 +02:00

17 lines
555 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { createContext } from 'react';
import { CoreStart } from 'kibana/public';
import { ObservabilityPluginSetupDeps } from '../plugin';
export interface PluginContextValue {
core: CoreStart;
plugins: ObservabilityPluginSetupDeps;
}
export const PluginContext = createContext({} as PluginContextValue);