UNPKG

@selfcommunity/react-core

Version:

React Core Components useful for integrating UI Community components (react-ui).

19 lines (17 loc) 470 B
import { SCUserType } from '@selfcommunity/types'; /** :::info This custom hook is used to check if the user is blocked by me or I am blocked by him. ::: :::tip How to use it: Follow these steps: ```jsx 1. import useUserIsBlocked from '@selfcommunity/react-core'; 2. const {blocked, loading: loadingBlockedBy} = useUserIsBlocked(user); ``` ::: */ export default function useSCUserIsBlocked(user: SCUserType): { blocked: boolean; loading: boolean; };