aboutsummaryrefslogtreecommitdiff
path: root/src/console/app/contexts.ts
blob: 7e4f3237acea601743023c7811d881c8ac2e7f8f (plain) (blame)
1
2
3
4
5
6
7
8
9
import React from "react";
import { State, defaultState } from "./recuer";
import { AppAction } from "./actions";

export const AppStateContext = React.createContext<State>(defaultState);

export const AppDispatchContext = React.createContext<
  (action: AppAction) => void
>(() => {});