import { useMember } from '@towns-protocol/react-sdk'
function useMember( props: { streamId: string; userId: string; }, config?: ObservableConfig.FromObservable<Member>, ): { error: Error | undefined; status: "loading" | "loaded" | "error"; isLoading: boolean; isError: boolean; isLoaded: boolean; userId: string; streamId: string; initialized: boolean; username: string; isUsernameConfirmed: boolean; isUsernameEncrypted: boolean; displayName: string; isDisplayNameEncrypted: boolean | undefined; ensAddress: string | undefined; nft: NftModel | undefined; membership: MembershipOp | undefined; }
{ streamId: string; userId: string; }
ObservableConfig.FromObservable<Member>
{ error: Error | undefined; status: "loading" | "loaded" | "error"; isLoading: boolean; isError: boolean; isLoaded: boolean; userId: string; streamId: string; initialized: boolean; username: string; isUsernameConfirmed: boolean; isUsernameEncrypted: boolean; displayName: string; isDisplayNameEncrypted: boolean | undefined; ensAddress: string | undefined; nft: NftModel | undefined; membership: MembershipOp | undefined; }
Was this page helpful?