github.com/argoproj/argo-cd@v1.8.7/ui/src/app/shared/context.ts (about) 1 import {AppContext as ArgoAppContext, NavigationApi, NotificationsApi, PopupApi} from 'argo-ui'; 2 import {History} from 'history'; 3 import * as React from 'react'; 4 5 export type AppContext = ArgoAppContext & {apis: {popup: PopupApi; notifications: NotificationsApi; navigation: NavigationApi; baseHref: string}}; 6 7 export interface ContextApis { 8 popup: PopupApi; 9 notifications: NotificationsApi; 10 navigation: NavigationApi; 11 baseHref: string; 12 } 13 export const Context = React.createContext<ContextApis & {history: History}>(null); 14 export const {Provider, Consumer} = Context;