mirror of
https://github.com/morten-olsen/bob-the-algorithm.git
synced 2026-02-08 00:46:25 +01:00
19 lines
420 B
TypeScript
19 lines
420 B
TypeScript
import { createDataContext } from '#/utils/data-context';
|
|
import { Strategies } from "./algorithm/build-graph";
|
|
|
|
type PlannerOptions = {
|
|
strategy: Strategies;
|
|
}
|
|
|
|
const {
|
|
Context: PlannerContext,
|
|
Provider: PlannerProvider,
|
|
} = createDataContext<PlannerOptions>({
|
|
createDefault: () => ({
|
|
strategy: Strategies.firstComplet,
|
|
}),
|
|
});
|
|
|
|
export type { PlannerOptions };
|
|
export { PlannerContext, PlannerProvider };
|