UNPKG

@hhgtech/hhg-components

Version:
56 lines (55 loc) 1.69 kB
import { RISK_SCREENER_NAME } from "../../../interfaces/constants"; import { HEALTH_TOOL_NAME } from "../../../interfaces/healthTools"; import { DataTrackingType } from "../../../interfaces/types"; import { Props as BannerWithOptionsProps } from "./bannerWithOption"; import { Props as ToolBannerProps } from "./toolBanner"; export declare enum BannerCategory { Pregnant = "pregnant", Parenting = "parenting" } export declare enum BannerType { Option = "option" } export declare enum OptionBannerStyleType { Button = "button", Checkbox = "checkbox" } export type BannerStateData = { action?: BannerAction; actionParams?: { hideBannerWhenClose?: boolean; }; props?: ToolBannerProps | BannerWithOptionsProps; }; export declare enum BannerAction { ShowTool = "showTool", ShowPremiumModal = "showPremiumModal", ShowOptionBanner = "showOptionBanner", Hide = "hide" } export type OptionBannerType = { label: string; action: BannerAction; value: string; activeTool?: HEALTH_TOOL_NAME | RISK_SCREENER_NAME; isLink?: boolean; isRiskScreener: boolean; isPNBtn?: boolean; props?: ToolBannerProps | BannerWithOptionsProps; tracking?: DataTrackingType; }; export type ThumbnailType = { desktop: string; mobile: string; }; export type SubcribeHealthStatusType = { value: string; article: number; source: 'discover' | 'together'; } | null; export declare const MAPPING_CATEGORY_PREMIUM_TYPE: { [key in string]: BannerCategory; }; export declare const MAPPING_CATEGORY_PREMIUM_API_TYPE: { [key in BannerCategory]: string; };