55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { __ } from '@wordpress/i18n';
|
|
import { Link } from '@woocommerce/components';
|
|
import { createInterpolateElement } from '@wordpress/element';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import { SidebarNavigationScreen } from './sidebar-navigation-screen';
|
|
import { ADMIN_URL } from '~/utils/admin-settings';
|
|
import { trackEvent } from '~/customize-store/tracking';
|
|
|
|
export const SidebarNavigationScreenPages = () => {
|
|
return (
|
|
<SidebarNavigationScreen
|
|
title={ __( 'Add more pages', 'woocommerce' ) }
|
|
description={ createInterpolateElement(
|
|
__(
|
|
"Enhance your customers' experience by customizing existing pages or adding new ones. You can continue customizing and adding pages later in <EditorLink>Editor</EditorLink> | <PageLink>Pages</PageLink>.",
|
|
'woocommerce'
|
|
),
|
|
{
|
|
EditorLink: (
|
|
<Link
|
|
onClick={ () => {
|
|
trackEvent(
|
|
'customize_your_store_assembler_hub_editor_link_click',
|
|
{
|
|
source: 'pages',
|
|
}
|
|
);
|
|
window.open(
|
|
`${ ADMIN_URL }site-editor.php`,
|
|
'_blank'
|
|
);
|
|
return false;
|
|
} }
|
|
href=""
|
|
/>
|
|
),
|
|
PageLink: (
|
|
<Link
|
|
href={ `${ ADMIN_URL }edit.php?post_type=page` }
|
|
type="external"
|
|
/>
|
|
),
|
|
}
|
|
) }
|
|
content={ <></> }
|
|
/>
|
|
);
|
|
};
|