hooks/useSCUserIsBlocked
Functions
useSCUserIsBlocked()
useSCUserIsBlocked(
user
):object
info
This custom hook is used to check if the user is blocked by me or I am blocked by him.
How to use it:
Follow these steps:
1. import useUserIsBlocked from '@selfcommunity/react-core';
2. const {blocked, loading: loadingBlockedBy} = useUserIsBlocked(user);
Parameters
Parameter | Type |
---|---|
user | SCUserType |
Returns
object
Member | Type |
---|---|
blocked | boolean |
loading | boolean |