import { createStore, Store } from "redux"; import { createContext, Context } from "react"; import { reducer, Action } from "./reducers"; import { IEditorState } from "./type"; import { EditorAction } from "./actions"; export * from "./type"; export * from "./selectors"; export * from "./constants"; type IStore = Store; const store: IStore = createStore(reducer); (window as any).store = store; export { store }; export { EditorAction }; export const StoreContext = createContext( null ) as Context;