nostr-hooks
Version:
React hooks for developing Nostr clients
15 lines (14 loc) • 422 B
TypeScript
import { NDKUser } from '@nostr-dev-kit/ndk';
type ProfileParams = {
nip05?: string;
pubkey?: string;
npub?: string;
nip46Urls?: string[];
relayUrls?: string[];
};
export type FollowsStatus = 'idle' | 'loading' | 'success' | 'not-found' | 'error';
export declare const useFollows: (profileParams?: ProfileParams) => {
follows: NDKUser[] | null | undefined;
status: FollowsStatus;
};
export {};