UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

Provides core APIs, types and utilities used by dynamic plugins at runtime.

9 lines (8 loc) 328 B
import * as React from 'react'; /** * Creates the perspective context * @deprecated - use the provided `usePerspectiveContext` instead * @param {PerspectiveContextType} PerspectiveContextType - object with active perspective and setter * @returns React context */ export const PerspectiveContext = React.createContext({});