UNPKG

@hhgtech/hhg-components

Version:
21 lines (20 loc) 902 B
import { Dispatch, ReactElement, SetStateAction } from 'react'; import { DueDateInfoType } from "../../../embeddedHeathToolCards/due-date/dueDate"; import { ButtonProps } from "../../../../../mantine"; import { DueDateCalculatorType } from "./utils"; import { HealthToolFormWrapperProps } from "../../formWrapper"; export type DueDateFormContextType = { calculatingMethods?: { label: string; value: string; icon: ReactElement; }[]; calculatorType: DueDateCalculatorType; setCalculatorType: Dispatch<SetStateAction<DueDateCalculatorType>>; submitProps?: ButtonProps; currentUrl?: string; isMobile?: boolean; formLayout?: HealthToolFormWrapperProps['formLayout']; onSubmit?: (info: DueDateInfoType, redirectLink?: string) => void; }; export declare const DueDateFormContext: import("react").Context<DueDateFormContextType>;