blob: 878d00b327854267819093f9b309b62685f3cd58 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import React from "react";
import { State, defaultState } from "../reducers";
import { ConsoleAction } from "../actions";
const AppContext = React.createContext<{
state: State;
dispatch: React.Dispatch<Promise<ConsoleAction> | ConsoleAction>;
}>({
state: defaultState,
dispatch: () => null,
});
export default AppContext;
|