| 1 |
import { DesignLibraryMarkup } from '@assist/svg'; |
| 2 |
import { hasPageCreatorEnabled } from '@help-center/lib/utils'; |
| 3 |
import { __ } from '@wordpress/i18n'; |
| 4 |
|
| 5 |
export default { |
| 6 |
slug: 'design-library', |
| 7 |
title: __('Design Library', 'extendify-local'), |
| 8 |
sidebarTitle: __('Explore the Design Library', 'extendify-local'), |
| 9 |
description: __( |
| 10 |
'Full design library customized for each site to easily drop in new sections or create full pages with sections.', |
| 11 |
'extendify-local', |
| 12 |
), |
| 13 |
buttonLabels: { |
| 14 |
completed: __('Revisit', 'extendify-local'), |
| 15 |
notCompleted: __('Explore Design Library', 'extendify-local'), |
| 16 |
}, |
| 17 |
link: hasPageCreatorEnabled |
| 18 |
? 'post-new.php?post_type=page&ext-open=1&ext-page-creator-close=1' |
| 19 |
: 'post-new.php?post_type=page&ext-open=1', |
| 20 |
type: 'html-text-button', |
| 21 |
dependencies: { plugins: [] }, |
| 22 |
show: () => true, |
| 23 |
backgroundImage: null, |
| 24 |
htmlBefore: () => ( |
| 25 |
<DesignLibraryMarkup |
| 26 |
className="pointer-events-none relative hidden h-full min-h-56 w-full overflow-hidden rounded-t-lg border border-gray-300 bg-gray-100 pt-5 lg:block" |
| 27 |
aria-hidden="true" |
| 28 |
/> |
| 29 |
), |
| 30 |
}; |
| 31 |
|