← All changes
|
src/Agent/workflows/abilities/components/run/index.jsx
+2
-0
3.1.5
→
trunk
View file →
| @@ -1,9 +1,11 @@ | ||
| 1 | 1 | import { Generic } from '@agent/workflows/abilities/components/run/Generic'; |
| 2 | +import { OptimizeMedia } from '@agent/workflows/abilities/components/run/imagify/OptimizeMedia'; | |
| 2 | 3 | import { CreateProduct } from '@agent/workflows/abilities/components/run/woo/CreateProduct'; |
| 3 | 4 | import { createElement } from '@wordpress/element'; |
| 4 | 5 | |
| 5 | 6 | const BY_ABILITY = { |
| 7 | + 'imagify/optimize-media': OptimizeMedia, | |
| 6 | 8 | 'woocommerce/product-create': CreateProduct, |
| 7 | 9 | }; |
| 8 | 10 | |
| 9 | 11 | export const hasRunComponent = (abilityName) => !!BY_ABILITY[abilityName]; |