UNPKG

@hhgtech/hhg-components

Version:
44 lines (43 loc) 1.79 kB
import React, { CSSProperties, ReactNode } from 'react'; export declare enum CardReactionType { post = 1, reply = 2 } export type Props = { type: CardReactionType; viewCount?: number; loveCount?: number; replyCount?: number; replyPadding?: boolean; liked?: boolean; isReplied?: boolean; isSaved?: boolean; hideCommentIcon?: boolean; className?: string; onCommentClick?: () => void; onLikeClick?: () => void; onCommentCountClick?: () => void; onShareClick?: () => void; onSaveClick?: () => void; onGoToUrl?: (params?: string) => void; style?: CSSProperties; showingMostEngaging?: boolean; isMarryBaby?: boolean; hasShare?: boolean; hasSave?: boolean; hasCountLike?: boolean; hasActionStatistical?: boolean; hasShowAction?: boolean; isReleatedPost?: boolean; trackingCategory?: string; trackingLabel?: string; isVertical?: boolean; children?: ReactNode; }; declare const CardReactions: { ({ type, viewCount, loveCount, replyCount, replyPadding, liked, isReplied, isSaved, onCommentClick, onLikeClick, onShareClick, onSaveClick, onGoToUrl, className, style, showingMostEngaging, isMarryBaby: isMarryBabyInit, hasShare, hasSave, hasActionStatistical, hasShowAction, isReleatedPost, isVertical, trackingCategory, trackingLabel, children, ...rest }: Props): React.JSX.Element; LikeWrapper: ({ children, className, ...boxProps }: import("./element").Props) => React.JSX.Element; ShareWrapper: ({ children, className, ...boxProps }: import("./element").Props) => React.JSX.Element; CommentWrapper: ({ children, className, ...boxProps }: import("./element").Props) => React.JSX.Element; }; export { CardReactions };