UNPKG

@hhgtech/hhg-components

Version:
24 lines (23 loc) 913 B
/// <reference types="react" /> import { BoxProps } from '@mantine/core'; import { IconProps } from "../../atoms"; import { VideoItemType } from "../../../interfaces/types/Video"; import { DataTrackingType } from "../../../types"; export type VideoItemHandle = { open: () => void; close: () => void; }; export type VideoItemProps = { data: VideoItemType; layout?: 'overlay' | 'default' | 'horizon'; radius?: React.CSSProperties['borderRadius']; disableDefaultFn?: boolean; redirectToLandingPage?: boolean; onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void; isMobile?: boolean; playIcon?: React.FC<IconProps>; hideInfo?: boolean; loading?: boolean; useSquareRatioThumbnail?: boolean; } & BoxProps & DataTrackingType; export type VideoItemTypeProps = Omit<VideoItemProps, 'disableDefaultFn' | 'redirectToLandingPage' | 'onClick'>;