Overview
Returns a function that checks whether the current authenticated user blocks a given userId. The result reports the current user’s outbound state only — whether I block this user. It never reveals whether the other user has blocked the current user (the inbound direction is deliberately hidden for non-disclosure).
Usage Example
Parameters
The hook returns a function. That function accepts:
The ID of the user to check. Cannot be the current user’s own ID.
Returns
Whether the current user blocks the target user.
The ID of the block record. Present when blocked is true.
ISO timestamp of when the block was created. Present when blocked is true.