| 1 |
import { AiWritingAssistantMarkup } from '@assist/tasks/images/AiWritingAssistantMarkup'; |
| 2 |
import { hasPageCreatorEnabled } from '@help-center/lib/utils'; |
| 3 |
import { __ } from '@wordpress/i18n'; |
| 4 |
|
| 5 |
export default { |
| 6 |
slug: 'ai-text-editor', |
| 7 |
title: __('AI Writing Assistant', 'extendify-local'), |
| 8 |
sidebarTitle: __('Edit a page with AI', 'extendify-local'), |
| 9 |
description: __( |
| 10 |
'Get to know your WordPress site easily. Learn simple steps to find and use its main features.', |
| 11 |
'extendify-local', |
| 12 |
), |
| 13 |
buttonLabels: { |
| 14 |
completed: __('Revisit', 'extendify-local'), |
| 15 |
notCompleted: __('Start Writing with AI', 'extendify-local'), |
| 16 |
}, |
| 17 |
link: hasPageCreatorEnabled |
| 18 |
? 'post-new.php?post_type=page&ext-page-creator-close=1' |
| 19 |
: 'post-new.php?post_type=page&ext-close=1', |
| 20 |
type: 'html-text-button', |
| 21 |
dependencies: { plugins: [] }, |
| 22 |
show: () => !!window.extSharedData?.showDraft, |
| 23 |
backgroundImage: null, |
| 24 |
htmlBefore: () => ( |
| 25 |
<AiWritingAssistantMarkup |
| 26 |
className="border-gray-300 pointer-events-none relative hidden h-full min-h-56 w-full overflow-hidden rounded-t-lg border bg-gray-100 pt-5 lg:block" |
| 27 |
aria-hidden="true" |
| 28 |
/> |
| 29 |
), |
| 30 |
}; |
| 31 |
|