hooks/useSCBlockedUsersManager
Functions
useSCBlockedUsersManager()
useSCBlockedUsersManager(
user
?):object
|object
info
This custom hook is used to manage blocked users.
How to use it:
Follow these steps:
1. const scUserContext: SCUserContextType = useSCUser();
2. const scBlockedUsersManager: SCBlockedUsersManagerType = scUserContext.manager.blockedUsers;
3. scBlockedUsersManager.isBlocked(user)
Parameters
Parameter | Type |
---|---|
user ? | SCUserType |
Returns
object
| object
Source
packages/react-core/src/hooks/useSCBlockedUsersManager.ts:22