UNPKG

@blocklet/ui-react

Version:

Some useful front-end web components that can be used in Blocklets.

13 lines (12 loc) 412 B
/** * 登录用户与当前用户(userDid)的关注关系 */ export default function useFollow({ userDid, t, isMySelf, }: { userDid: string; t: (k: string) => string; isMySelf: boolean; }): { followed: boolean; followUser: (this: unknown, followUserDid?: string | undefined) => Promise<void>; unfollowUser: (this: unknown, unfollowUserDid?: string | undefined) => Promise<void>; };