This commit is contained in:
Morten Olsen
2022-05-06 14:39:49 +02:00
parent d83a4aebc7
commit 7057e11e96
18 changed files with 257 additions and 51 deletions

View File

@@ -0,0 +1,15 @@
import { createContext } from 'react';
import { Strategies } from "./algorithm/build-graph";
type PlannerOptions = {
strategy: Strategies;
}
type PlannerContextValue = {
options: PlannerOptions;
setOptions: (options: Partial<PlannerOptions>) => void;
}
const PlannerContext = createContext<PlannerContextValue>(undefined as any);
export type { PlannerContextValue, PlannerOptions };
export { PlannerContext };