Function: useAgentApprovals()
@roomful/react / useAgentApprovals
Function: useAgentApprovals()
Section titled “Function: useAgentApprovals()”useAgentApprovals<
TPresence>(options?):UseAgentApprovalsResult
Defined in: react/src/index.ts:1422
Subscribes to the room’s agent-approval workflow: agents propose actions and humans approve or reject them. Returns the proposal list (all + pending, newest first) and the decision actions.
Type Parameters
Section titled “Type Parameters”TPresence
Section titled “TPresence”TPresence extends PresenceData = PresenceData
The room presence shape.
Parameters
Section titled “Parameters”options?
Section titled “options?”AgentApprovalOptions
Optional configuration (permission hook).
Returns
Section titled “Returns”The reactive proposals plus approve/reject/propose.