/** * WordPress dependencies */ /* eslint-disable @woocommerce/dependency-group */ /* eslint-disable @typescript-eslint/ban-ts-comment */ import { createInterpolateElement } from '@wordpress/element'; import { // @ts-ignore No types for this exist yet. __experimentalItemGroup as ItemGroup, // @ts-ignore No types for this exist yet. __experimentalNavigatorButton as NavigatorButton, // @ts-ignore No types for this exist yet. __experimentalHeading as Heading, } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { siteLogo, color, typography, header, home, footer, } from '@wordpress/icons'; // @ts-ignore No types for this exist yet. import SidebarNavigationItem from '@wordpress/edit-site/build-module/components/sidebar-navigation-item'; import { Link } from '@woocommerce/components'; import { recordEvent } from '@woocommerce/tracks'; /** * Internal dependencies */ import { SidebarNavigationScreen } from './sidebar-navigation-screen'; import { ADMIN_URL } from '~/utils/admin-settings'; export const SidebarNavigationScreenMain = () => { return ( Editor later.', 'woocommerce' ), { EditorLink: ( { recordEvent( 'customize_your_store_assembler_hub_editor_link_click', { source: 'main', } ); window.open( `${ ADMIN_URL }site-editor.php`, '_blank' ); return false; } } href="" /> ), } ) } content={ <>
{ __( 'Style', 'woocommerce' ) }
{ recordEvent( 'customize_your_store_assembler_hub_sidebar_item_click', { item: 'logo', } ); } } > { __( 'Add your logo', 'woocommerce' ) } { recordEvent( 'customize_your_store_assembler_hub_sidebar_item_click', { item: 'color-palette', } ); } } > { __( 'Change the color palette', 'woocommerce' ) } { recordEvent( 'customize_your_store_assembler_hub_sidebar_item_click', { item: 'typography', } ); } } > { __( 'Change fonts', 'woocommerce' ) }
{ __( 'Layout', 'woocommerce' ) }
{ recordEvent( 'customize_your_store_assembler_hub_sidebar_item_click', { item: 'header', } ); } } > { __( 'Change your header', 'woocommerce' ) } { recordEvent( 'customize_your_store_assembler_hub_sidebar_item_click', { item: 'home', } ); } } > { __( 'Change your homepage', 'woocommerce' ) } { recordEvent( 'customize_your_store_assembler_hub_sidebar_item_click', { item: 'footer', } ); } } > { __( 'Change your footer', 'woocommerce' ) } { /* TODO: Turn on this in Phrase 2 */ } { /* { __( 'Add and edit other pages', 'woocommerce' ) } */ } } /> ); };