@hhgtech/hhg-components
Version:
Hello Health Group common components
27 lines (26 loc) • 1.1 kB
TypeScript
import React, { CSSProperties } from 'react';
import { Topic, Community } from "../../../interfaces/types";
import { UserInfo } from "../../../../types";
import { Post } from "../../../interfaces/types";
export type Props = {
className?: string;
style?: CSSProperties;
onPostCreatedEdited?: (post: Post, isEdit?: boolean) => void;
onClose?: () => void;
communities?: Community[];
forceSelectCommunity?: Community;
forceSelectTopics?: Topic[];
articleId?: string;
optionalTopic?: boolean;
noFetchTopic?: boolean;
editPostData?: Post;
defaultCommunity?: Community;
defaultTopics?: Topic[];
hideTopicList?: boolean;
selectAskDoctor?: boolean;
showAskDoctorOptions?: boolean;
currentPageUrl?: string;
isMarryBaby?: boolean;
userInfo?: UserInfo | null;
};
export declare const CreateNewPostContentV2: ({ className, style, onClose, onPostCreatedEdited, forceSelectCommunity, forceSelectTopics, articleId, editPostData, defaultCommunity, communities, userInfo, isMarryBaby, }: Props) => React.JSX.Element;