datahub/datahub-web-react/src/providers/EducationStepsContext.tsx

15 lines
555 B
TypeScript
Raw Normal View History

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: () => {},
});