@hhgtech/hhg-components
Version:
Hello Health Group common components
25 lines (24 loc) • 955 B
TypeScript
import React from 'react';
import { DueDateInfoType } from "../../../embeddedHeathToolCards/due-date/dueDate";
import { ButtonProps } from "../../../../../mantine";
import { LocaleType } from "../../../../../types";
import { HealthToolFormWrapperProps } from "../../formWrapper";
export declare enum OvulationCalculatorType {
trackPeriod = 0,
conceive = 1,
avoidPregnancy = 2
}
export type DueDateFormValue = {
calculatorType?: string;
lastPeriodDate?: Date;
periodLength?: number;
cycleLength?: number;
};
export type DueDateFormProps = {
locale?: LocaleType;
isMobile?: boolean;
onSubmit?: (info: DueDateInfoType, redirectQuery?: string) => void;
submitProps?: ButtonProps;
currentUrl?: string;
} & HealthToolFormWrapperProps;
export declare const DueDateForm: ({ locale, formLayout, submitProps, currentUrl, isMobile, onSubmit, ...props }: DueDateFormProps) => React.JSX.Element;