replyke-rn
Version:
Replyke React Native components: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
26 lines (25 loc) • 1.02 kB
TypeScript
import { ReactNode } from "react";
import { SocialStyleCallbacks, CommentsSortByOptions, SocialStyleConfig } from "replyke-core";
import { SortByButton } from "..";
declare function useSocialComments({ entityId, styleConfig, callbacks, defaultSortBy, limit, highlightedCommentId, }: {
entityId: string | null | undefined;
styleConfig: SocialStyleConfig;
callbacks?: SocialStyleCallbacks;
defaultSortBy?: CommentsSortByOptions;
limit?: number;
highlightedCommentId?: string | null;
}): {
CommentSectionProvider: ({ children }: {
children: ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
CommentsFeed: ({ children: customNoCommentsView, }: {
children?: ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
NewCommentForm: import("react").ForwardRefExoticComponent<{
withEmojis?: boolean;
} & import("react").RefAttributes<{
focus: () => void;
}>>;
SortByButton: typeof SortByButton;
};
export default useSocialComments;