mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-29 02:55:15 +00:00

* feat(onboarding): adds models and API for onboarding steps feature * feat(onboarding): adds backend for onboarding steps feature * feat(onboarding): adds framework and some steps for onboarding steps UI
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: () => {},
|
|
});
|