* 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>
17 lines
555 B
TypeScript
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);
|