@hhgtech/hhg-components
Version:
Hello Health Group common components
28 lines (27 loc) • 1.21 kB
TypeScript
import React, { CSSProperties } from 'react';
import { Topic } from "../../../interfaces/types";
import { 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 CreateNewPostContent: ({ className, style, onPostCreatedEdited, onClose, communities, forceSelectCommunity, forceSelectTopics, articleId, optionalTopic, editPostData, defaultCommunity, defaultTopics, selectAskDoctor, showAskDoctorOptions, userInfo, isMarryBaby, }: Props) => React.JSX.Element;