aboutsummaryrefslogtreecommitdiff
path: root/src/console/completion/context.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/completion/context.ts')
-rw-r--r--src/console/completion/context.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/console/completion/context.ts b/src/console/completion/context.ts
new file mode 100644
index 0000000..2fafcf8
--- /dev/null
+++ b/src/console/completion/context.ts
@@ -0,0 +1,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
+>(() => {});