aboutsummaryrefslogtreecommitdiff
path: root/src/console/completion/context.ts
blob: 2fafcf8d44f9954780867b5dcca13a094296d6e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
import React from "react";
import { State, defaultState } from "./reducer";
import { CompletionAction } from "./actions";

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

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