UNPKG

@wordpress/components

Version:
23 lines (22 loc) 463 B
// packages/components/src/navigator/context.ts import { createContext } from "@wordpress/element"; var initialContextValue = { location: {}, goTo: () => { }, goBack: () => { }, goToParent: () => { }, addScreen: () => { }, removeScreen: () => { }, params: {} }; var NavigatorContext = createContext(initialContextValue); NavigatorContext.displayName = "NavigatorContext"; export { NavigatorContext }; //# sourceMappingURL=context.js.map