@hhgtech/hhg-components
Version:
Hello Health Group common components
33 lines (32 loc) • 1.72 kB
TypeScript
import React, { CSSProperties, ReactNode } from 'react';
import { Comment, Post } from "../../../interfaces/types";
import { Props as CardAuthorProps } from "../../molecules/cardAuthor";
export type Props = {
post: Post;
hideViewMoreComment?: boolean;
showMostEngaging?: boolean;
className?: string;
disableCardLink?: boolean;
disableShortenContent?: boolean;
style?: CSSProperties;
onCommentClick?: () => void;
onMostEngagingCommentClick?: () => void;
onCommentCountClick?: () => void;
onPostCommentSuccess?: (c: Comment) => void;
onSaveUnsaveSuccess?: () => void;
onDeletePost?: () => void;
onEditPost?: () => void;
mostEngagingComment?: Comment | null;
onDeleteComment?: (c: Comment) => void;
showInputComment?: boolean;
hasQuickBookingEnable?: boolean;
doctorId?: string;
hospitalId?: string;
InlineCommentsComponent?: ReactNode;
handleMakeAppointment?: (doctorId?: string, hospitalId?: string) => void;
isMarryBaby?: boolean;
cardAuthorProps?: CardAuthorProps;
verticalReactions?: boolean;
};
declare const CardPost: ({ className, style, hideViewMoreComment, showMostEngaging, onCommentClick, onCommentCountClick, onMostEngagingCommentClick, onPostCommentSuccess: onPostCommentSuccessProp, disableCardLink, disableShortenContent, onDeletePost, onEditPost, post: postProp, mostEngagingComment: mostEngagingCommentProp, onDeleteComment: onDeleteCommentProp, showInputComment: propsShowInputComment, InlineCommentsComponent, hasQuickBookingEnable, handleMakeAppointment, onSaveUnsaveSuccess, cardAuthorProps, verticalReactions, }: Props) => React.JSX.Element;
export { CardPost };