| 1 |
import { designWorkflows } from '@agent/follow-ups/design-workflows'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
|
| 4 |
export default { |
| 5 |
id: 'change-site-style', |
| 6 |
follows: designWorkflows, |
| 7 |
order: 3, |
| 8 |
// translators: Title of a card in the AI Agent chat. "Style" refers to the structural aesthetic style of the website. |
| 9 |
title: __('Try a different style', 'extendify-local'), |
| 10 |
// translators: Body of a card in the AI Agent chat. "Style" refers to the structural aesthetic style of the website. |
| 11 |
body: __( |
| 12 |
'Each style changes the overall feel of your site while keeping your content.', |
| 13 |
'extendify-local', |
| 14 |
), |
| 15 |
action: { |
| 16 |
// translators: Button on a card in the AI Agent chat that opens a picker for the website's style. |
| 17 |
label: __('Change style', 'extendify-local'), |
| 18 |
workflowId: 'change-site-vibes', |
| 19 |
}, |
| 20 |
score: ({ context, abilities }) => |
| 21 |
abilities?.canEditThemes && |
| 22 |
context?.hasThemeVariations && |
| 23 |
context?.isUsingVibes && |
| 24 |
Number(context?.postId) |
| 25 |
? 2 |
| 26 |
: 0, |
| 27 |
}; |
| 28 |
|