# extendify/3.1.6/src/Agent/workflows/abilities/components/run/index.jsx

Extendify, version 3.1.6. 13 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.6/code/src/Agent/workflows/abilities/components/run/index.jsx
- Raw: https://pluginprobe.com/plugins/extendify/3.1.6/raw/src/Agent/workflows/abilities/components/run/index.jsx
- Modified: 2026-08-12T16:23:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.1.6/code/src/Agent/workflows/abilities/components/run/index.jsx#L10-L20`.

```jsx
import { Generic } from '@agent/workflows/abilities/components/run/Generic';
import { CreateProduct } from '@agent/workflows/abilities/components/run/woo/CreateProduct';
import { createElement } from '@wordpress/element';

const BY_ABILITY = {
	'woocommerce/product-create': CreateProduct,
};

export const hasRunComponent = (abilityName) => !!BY_ABILITY[abilityName];

export const AbilityRun = (props) =>
	createElement(BY_ABILITY[props.id] ?? Generic, props);

```
