| 1 |
import { UpdateLogoConfirm } from '@agent/workflows/theme/components/UpdateLogoConfirm'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
|
| 4 |
const { abilities } = window.extAgentData; |
| 5 |
|
| 6 |
export default { |
| 7 |
available: () => abilities?.canEditSettings && abilities?.canUploadMedia, |
| 8 |
id: 'update-logo', |
| 9 |
whenFinished: { |
| 10 |
component: UpdateLogoConfirm, |
| 11 |
}, |
| 12 |
example: { |
| 13 |
text: __('Change website logo', 'extendify-local'), |
| 14 |
agentResponse: { |
| 15 |
// translators: This message shows above a UI where the user can upload or replace their site logo. |
| 16 |
reply: __( |
| 17 |
'Below you can upload or replace your website logo.', |
| 18 |
'extendify-local', |
| 19 |
), |
| 20 |
whenFinishedTool: { |
| 21 |
id: 'update-logo', |
| 22 |
labels: { |
| 23 |
confirm: __('Updated the site logo', 'extendify-local'), |
| 24 |
cancel: __('Canceled the site logo update', 'extendify-local'), |
| 25 |
}, |
| 26 |
}, |
| 27 |
}, |
| 28 |
}, |
| 29 |
}; |
| 30 |
|