UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

18 lines (17 loc) 627 B
import { Reaction, ReactionType } from "../../interfaces/models/Reaction"; export interface UseFetchCommentReactionsWrapperProps { commentId: string; limit?: number; reactionType?: ReactionType; sortDir?: "asc" | "desc"; autoFetch?: boolean; } export interface UseFetchCommentReactionsWrapperValues { reactions: Reaction[]; loading: boolean; hasMore: boolean; loadMore: () => void; refetch: () => void; } declare function useFetchCommentReactionsWrapper(props: UseFetchCommentReactionsWrapperProps): UseFetchCommentReactionsWrapperValues; export default useFetchCommentReactionsWrapper;