@hhgtech/hhg-components
Version:
Hello Health Group common components
34 lines (33 loc) • 1.3 kB
TypeScript
import React from 'react';
export type BoostPageViewApiResponse = {
data?: {
type?: string;
boost_data?: unknown;
delay_time?: number;
};
};
export type BoostPopupSource = {
source: 'article';
articleId?: number | string;
primaryCategoryId?: number | string;
} | {
source: 'community';
postId?: number | string;
community?: number | string;
};
export type PopupBoostPageViewProps = {
source: BoostPopupSource['source'];
articleId?: number | string;
primaryCategoryId?: number | string;
postId?: number | string;
community?: number | string;
isMobile: boolean;
basePath: string;
/** Page URL for tracking; if omitted or empty, tracking uses `window.location.href` at send time. */
currentUrl?: string;
getSpotlightTitle: (raw: unknown) => string;
getSpotlightImage: (raw: unknown) => string;
getSpotlightPermalink?: (raw: unknown) => string;
getSpotlightContent?: (raw: unknown) => string;
};
export declare function PopupBoostPageView({ source, articleId, primaryCategoryId, postId, community, isMobile, basePath, currentUrl, getSpotlightTitle, getSpotlightImage, getSpotlightPermalink, getSpotlightContent, }: PopupBoostPageViewProps): React.JSX.Element;