UNPKG

@hhgtech/hhg-components

Version:
64 lines (63 loc) 1.91 kB
import React from 'react'; import { LocaleType, SiteType } from "../../../../interfaces/types"; import { DueDateFormProps } from "../../healthTools/form/dueDateForm"; import { HealthToolFormWrapperProps } from "../../healthTools/formWrapper"; type OtherInfo = { first_day?: string | null; cycle_length_days?: number | null; conception_date?: string | null; ivf_transfer_date?: string | null; insemination_date?: string | null; measurement_date?: string | null; days_transfer?: number | null; method?: number | null; crl_value?: number | null; msd_value?: number | null; }; type DueDateInfo = { post_title: string; post_content: string; disclaimer: string; featured_image: string; informations: [ { title: string; description: string; } ]; faqs?: { [key: string]: [ { title: string; content: string; } ]; }; reviewed_by: { ID: number | string; name: string; post_title: string; permalink: string; avatar: string; slug?: string; role?: string; user_id: number; display_name?: string; profile_url?: string; }; reviewed_date: string; }; export type DueDateCardEmbedProps = { locale?: LocaleType; onSubmitDueDate?: (info: DueDateInfoType, redirectLink?: string) => void; dueDatePageInfo: DueDateInfo; expertUrl?: string; isSide?: boolean; siteType?: SiteType; formProps?: DueDateFormProps; } & HealthToolFormWrapperProps; export type DueDateInfoType = { otherInfo: OtherInfo; }; declare const DueDateCardEmbed: ({ dueDatePageInfo, expertUrl, formProps, ...props }: DueDateCardEmbedProps) => React.JSX.Element; export { DueDateCardEmbed };