2023-08-28 01:28:05 +00:00
/ * *
* External dependencies
* /
import { __ } from '@wordpress/i18n' ;
import { Link } from '@woocommerce/components' ;
import { createInterpolateElement } from '@wordpress/element' ;
2023-09-19 03:37:46 +00:00
import { recordEvent } from '@woocommerce/tracks' ;
2023-08-28 01:28:05 +00:00
/ * *
* Internal dependencies
* /
import { SidebarNavigationScreen } from './sidebar-navigation-screen' ;
import { ADMIN_URL } from '~/utils/admin-settings' ;
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
2023-09-19 03:37:46 +00:00
onClick = { ( ) = > {
recordEvent (
'customize_your_store_assembler_hub_editor_link_click' ,
{
source : 'pages' ,
}
) ;
window . open (
` ${ ADMIN_URL } site-editor.php ` ,
'_blank'
) ;
return false ;
} }
href = ""
2023-08-28 01:28:05 +00:00
/ >
) ,
PageLink : (
< Link
2023-09-11 09:48:23 +00:00
href = { ` ${ ADMIN_URL } edit.php?post_type=page ` }
2023-08-28 01:28:05 +00:00
type = "external"
/ >
) ,
}
) }
2023-10-02 08:28:13 +00:00
content = { < > < / > }
2023-08-28 01:28:05 +00:00
/ >
) ;
} ;