| 1 |
import { LaunchDemoSitesMarkup } from '@assist/tasks/images/LaunchDemoSitesMarkup'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
|
| 4 |
const { launchCompleted } = window.extAssistData; |
| 5 |
const { themeSlug, showLaunch, useAgentOnboarding } = window.extSharedData; |
| 6 |
|
| 7 |
export default { |
| 8 |
slug: 'site-builder-launcher', |
| 9 |
title: __('Continue with site builder', 'extendify-local'), |
| 10 |
description: __( |
| 11 |
'Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.', |
| 12 |
'extendify-local', |
| 13 |
), |
| 14 |
buttonLabels: { |
| 15 |
completed: __('Add Website Details', 'extendify-local'), |
| 16 |
notCompleted: __('Add Website Details', 'extendify-local'), |
| 17 |
}, |
| 18 |
link: useAgentOnboarding |
| 19 |
? 'admin.php?page=extendify-auto-launch' |
| 20 |
: 'admin.php?page=extendify-launch', |
| 21 |
type: 'site-launcher-task', |
| 22 |
dependencies: { plugins: [] }, |
| 23 |
show: () => { |
| 24 |
return themeSlug === 'extendable' && !launchCompleted && showLaunch; |
| 25 |
}, |
| 26 |
backgroundImage: null, |
| 27 |
htmlBefore: () => ( |
| 28 |
<LaunchDemoSitesMarkup |
| 29 |
className="border-gray-300 pointer-events-none relative hidden h-full min-h-56 w-full overflow-hidden rounded-t-lg border bg-gray-800 pt-5 lg:block" |
| 30 |
aria-hidden="true" |
| 31 |
/> |
| 32 |
), |
| 33 |
}; |
| 34 |
|