15 lines
387 B
JavaScript
15 lines
387 B
JavaScript
|
|
// @flow
|
||
|
|
|
||
|
|
import { createContext } from 'react';
|
||
|
|
import Store from '../store';
|
||
|
|
|
||
|
|
import type { FrontendBridge } from 'src/bridge';
|
||
|
|
|
||
|
|
export const BridgeContext = createContext<FrontendBridge>(
|
||
|
|
((null: any): FrontendBridge)
|
||
|
|
);
|
||
|
|
BridgeContext.displayName = 'BridgeContext';
|
||
|
|
|
||
|
|
export const StoreContext = createContext<Store>(((null: any): Store));
|
||
|
|
StoreContext.displayName = 'StoreContext';
|