nostr-hooks
Version:
React hooks for developing Nostr clients
26 lines (25 loc) • 872 B
TypeScript
import { NDKEvent } from '@nostr-dev-kit/ndk';
import { Nip29GroupThreadComment } from '../../types';
export declare const useGroupThreadComments: (relay: string | undefined, groupId: string | undefined, filter?: {
byPubkey?: {
pubkey: string | undefined;
waitForPubkey: true;
};
byId?: {
id: string | undefined;
waitForId: true;
};
byParentId?: {
parentId: string | undefined;
waitForParentId: true;
};
since?: number | undefined;
until?: number | undefined;
limit?: number | undefined;
}) => {
threadComments: Nip29GroupThreadComment[] | undefined;
isLoadingThreadComments: boolean;
hasMoreThreadComments: boolean | undefined;
loadMoreThreadComments: (limit?: number, since?: number | null) => void | "" | undefined;
threadCommentsEvents: NDKEvent[] | undefined;
};