@hhgtech/hhg-components
Version:
Hello Health Group common components
32 lines (31 loc) • 1.47 kB
TypeScript
import React from 'react';
import { Option } from "../../../../../interfaces/types";
import { CategoryTopic, Topic } from "../../../../interfaces/types";
import { Community } from "../../../../interfaces/types";
import { PostStepType } from "../types";
export type Props = {
communitiesList: Community[];
currentCommunity: Community | null;
selectedTopics: (CategoryTopic | Topic)[];
communityValue: Option;
isMobile?: boolean;
isFullscreen?: boolean;
isInEditMode: boolean;
isLoadingSuggest: boolean;
isMarryBaby: boolean;
defaultCommunity?: Community;
error?: Record<string, string>;
setSelectedTopics: (val: (CategoryTopic | Topic)[]) => void;
setCommunityValue: (val: any) => void;
onBack?: (val: boolean) => void;
removeKeyError?: (val: string) => void;
setStepPost?: (val: PostStepType) => void;
onSubmitPost: (uncategorized?: boolean) => void;
};
export type CommunityReviewProps = {
selectedTopics: (CategoryTopic | Topic)[];
currentCommunity: Community;
setSelectedTopics: (val: (CategoryTopic | Topic)[]) => void;
};
export type SelectionCommunityType = 'chatbot' | 'manual';
export declare const CreatePostCommunity: ({ communitiesList, currentCommunity, selectedTopics, communityValue, isInEditMode, isLoadingSuggest, defaultCommunity, isMarryBaby, setSelectedTopics, setCommunityValue, onSubmitPost, setStepPost, }: Props) => React.ReactPortal;