mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-29 02:55:15 +00:00
15 lines
555 B
TypeScript
15 lines
555 B
TypeScript
![]() |
import React from 'react';
|
||
|
import { StepStateResult } from '../types.generated';
|
||
|
|
||
|
export const EducationStepsContext = React.createContext<{
|
||
|
educationSteps: StepStateResult[] | null;
|
||
|
setEducationSteps: React.Dispatch<React.SetStateAction<StepStateResult[] | null>>;
|
||
|
educationStepIdsAllowlist: Set<string>;
|
||
|
setEducationStepIdsAllowlist: React.Dispatch<React.SetStateAction<Set<string>>>;
|
||
|
}>({
|
||
|
educationSteps: [],
|
||
|
setEducationSteps: () => {},
|
||
|
educationStepIdsAllowlist: new Set(),
|
||
|
setEducationStepIdsAllowlist: () => {},
|
||
|
});
|