this repo has no description
1import { isBaseActionProvider } from "@jet/environment/dispatching";
2/**
3 * Retrieve an {@linkcode ActionModel} for the given {@linkcode intent} through
4 * any registered `IntentController`s that implement `ActionProvider`
5 */
6export function actionFor(intent, objectGraph, options = {}) {
7 const resolvedController = objectGraph.dispatcher.controller(intent);
8 if (isBaseActionProvider(resolvedController)) {
9 return resolvedController.actionFor(intent, objectGraph, options);
10 }
11 return null;
12}
13//# sourceMappingURL=action-provider.js.map