Function: activityFromAgent()
ts
function activityFromAgent(a): Activity | null;Defined in: packages/sdk/src/activity.ts:35
Map AgentActivity onto UI Activity. Returns null when there is nothing to paint (none / dead — callers may map dead → "error" themselves if they want chrome). "blocked" (waiting on a permission answer) maps to "warn" unconditionally — unlike "dead" it is never ambiguous chrome, so there is no reason for a caller to want it suppressed.
Parameters
a
Returns
Activity | null