UNPKG

@hhgtech/hhg-components

Version:
46 lines (45 loc) 1.4 kB
import React, { CSSProperties } from 'react'; import { BoxProps } from '@mantine/core'; import { LOCALE } from "../../../interfaces/types"; export type AdUnitItem = { adUnitPath: string; size: number[] | number[][]; divId: string; pos: string[]; sizeMapping?: [number[], number[][]][]; contentId?: string; hideIfHasSubot?: boolean; customTargetings?: { [key: string]: (string | number) | (string | number)[]; }; }; export type Props = { className?: string; style?: CSSProperties; isHidden?: boolean; isSticky?: boolean; refreshInterval?: number; adDefaultSize?: (number | string)[]; noWrapper?: boolean; showCloseBtn?: boolean; headerBottom?: boolean; onCloseAd?: () => void; wrapperProps?: BoxProps; locale?: LOCALE; isMarryBaby?: boolean; } & AdUnitItem; export declare const AdBlock: React.MemoExoticComponent<React.ForwardRefExoticComponent<{ className?: string; style?: CSSProperties; isHidden?: boolean; isSticky?: boolean; refreshInterval?: number; adDefaultSize?: (number | string)[]; noWrapper?: boolean; showCloseBtn?: boolean; headerBottom?: boolean; onCloseAd?: () => void; wrapperProps?: BoxProps; locale?: LOCALE; isMarryBaby?: boolean; } & AdUnitItem & React.RefAttributes<HTMLDivElement>>>;