# extendify/2.2.0/src/Agent/workflows/theme/change-theme-variation.js

Extendify, version 2.2.0. 15 lines.

- Page: https://pluginprobe.com/plugins/extendify/2.2.0/code/src/Agent/workflows/theme/change-theme-variation.js
- Raw: https://pluginprobe.com/plugins/extendify/2.2.0/raw/src/Agent/workflows/theme/change-theme-variation.js
- Modified: 2025-09-09T15:55:14+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/2.2.0/code/src/Agent/workflows/theme/change-theme-variation.js#L10-L20`.

```javascript
import { RedirectThemeVariations } from '@agent/components/redirects/RedirectThemeVariations';
import { SelectThemeVariation } from '@agent/workflows/theme/components/SelectThemeVariation';

const { context, abilities } = window.extAgentData;

export default {
	available: () => abilities?.canEditThemes && context?.hasThemeVariations,
	needsRedirect: () => !Number(context?.postId || 0),
	redirectComponent: RedirectThemeVariations,
	id: 'change-theme-variation',
	whenFinished: {
		component: SelectThemeVariation,
	},
};

```
