@hhgtech/hhg-components
Version:
Hello Health Group common components
21 lines (20 loc) • 680 B
TypeScript
import { Dispatch, SetStateAction } from 'react';
export type SharedDataType = {
name?: string;
phone?: string;
email?: string;
retryPhoneCount?: number;
retryEmailCount?: number;
};
export type OnboardingContextType = {
currentStep: number;
setCurrentStep: (step: number) => void;
nextStep: () => void;
prevStep: () => void;
setMaxStep: (maxStep: number) => void;
siteType?: 'helloSites' | 'marryBaby';
isMarryBaby: boolean;
sharedData?: SharedDataType;
setSharedData?: Dispatch<SetStateAction<SharedDataType>>;
};
export declare const OnboardingContext: import("react").Context<OnboardingContextType>;