diff --git a/packages/edit-site/src/components/editor/index.js b/packages/edit-site/src/components/editor/index.js
index 467cd854f8f4c6..baf6c924616905 100644
--- a/packages/edit-site/src/components/editor/index.js
+++ b/packages/edit-site/src/components/editor/index.js
@@ -35,6 +35,7 @@ import Header from '../header';
import { SidebarComplementaryAreaFills } from '../sidebar';
import BlockEditor from '../block-editor';
import KeyboardShortcuts from '../keyboard-shortcuts';
+import NavigationSidebar from '../navigation-sidebar';
import URLQueryController from '../url-query-controller';
import InserterSidebar from '../secondary-sidebar/inserter-sidebar';
import ListViewSidebar from '../secondary-sidebar/list-view-sidebar';
@@ -46,6 +47,7 @@ import { GlobalStylesProvider } from '../global-styles/global-styles-provider';
const interfaceLabels = {
secondarySidebar: __( 'Block Library' ),
+ drawer: __( 'Navigation Sidebar' ),
};
function Editor( { initialSettings, onError } ) {
@@ -111,7 +113,11 @@ function Editor( { initialSettings, onError } ) {
// so that they can be selected with core/editor selectors in any editor.
// This is needed because edit-site doesn't initialize with EditorProvider,
// which internally uses updateEditorSettings as well.
- const { defaultTemplateTypes, defaultTemplatePartAreas } = settings;
+ const {
+ defaultTemplateTypes,
+ defaultTemplatePartAreas,
+ __experimentalNewMenuSidebar: newMenuSidebar,
+ } = settings;
useEffect( () => {
updateEditorSettings( {
defaultTemplateTypes,
@@ -213,6 +219,11 @@ function Editor( { initialSettings, onError } ) {
+ )
+ }
secondarySidebar={ secondarySidebar() }
sidebar={
sidebarIsOpened && (
diff --git a/packages/edit-site/src/components/header/index.js b/packages/edit-site/src/components/header/index.js
index 3e281ebd9eb8d2..d3a98251220730 100644
--- a/packages/edit-site/src/components/header/index.js
+++ b/packages/edit-site/src/components/header/index.js
@@ -47,6 +47,7 @@ export default function Header( {
isListViewOpen,
listViewShortcut,
isLoaded,
+ newMenuSidebar,
} = useSelect( ( select ) => {
const {
__experimentalGetPreviewDeviceType,
@@ -54,6 +55,7 @@ export default function Header( {
getEditedPostId,
isInserterOpened,
isListViewOpened,
+ getSettings,
} = select( editSiteStore );
const { getEditedEntityRecord } = select( coreStore );
const { __experimentalGetTemplateInfo: getTemplateInfo } = select(
@@ -77,6 +79,7 @@ export default function Header( {
listViewShortcut: getShortcutRepresentation(
'core/edit-site/toggle-list-view'
),
+ newMenuSidebar: getSettings().__experimentalNewMenuSidebar,
};
}, [] );
@@ -107,9 +110,11 @@ export default function Header( {
return (
-
-
-
+ { newMenuSidebar && (
+
+
+
+ ) }