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