Skip to content

Function: useAgentApprovals()

@roomful/react


@roomful/react / 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.

TPresence extends PresenceData = PresenceData

The room presence shape.

AgentApprovalOptions

Optional configuration (permission hook).

UseAgentApprovalsResult

The reactive proposals plus approve/reject/propose.