UNPKG

@lens-protocol/react-web

Version:

Lens Protocol SDK for React web applications

27 lines (26 loc) 899 B
import { Prettify } from '@lens-protocol/shared-kernel'; import { useConversations } from '@xmtp/react-sdk'; import { EnhancedConversation } from "./types.js"; /** * @experimental */ export type UseEnhanceConversationsResult = Prettify<ReturnType<typeof useConversations> & { conversations: EnhancedConversation[]; }>; /** * Enhance XMTP conversations with profiles of the conversations' peers, * if conversation is between two Lens profiles. * * You MUST be authenticated via `useLogin` to use this hook. * * @example * ```tsx * import { useConversations } from '@xmtp/react-sdk'; * * const { data: conversations, error, loading } = useEnhanceConversations(useConversations()); * ``` * @category Inbox * @group Hooks * @experimental */ export declare function useEnhanceConversations(useConversationsResult: ReturnType<typeof useConversations>): UseEnhanceConversationsResult;