+ { ( { canDuplicate, isLocked, onDuplicate, onRemove } ) => (
+
+
+ { ! isLocked && (
+
+ { canDuplicate && (
+
+ ) }
+
+
+ ) }
+
+ ) }
+
+ );
+}
diff --git a/packages/block-editor/src/components/index.js b/packages/block-editor/src/components/index.js
index ae163f11df919f..f00ef7369d1e5d 100644
--- a/packages/block-editor/src/components/index.js
+++ b/packages/block-editor/src/components/index.js
@@ -15,6 +15,7 @@ export { default as BlockFormatControls } from './block-format-controls';
export { default as BlockIcon } from './block-icon';
export { default as BlockNavigationDropdown } from './block-navigation/dropdown';
export { default as __experimentalBlockNavigationList } from './block-navigation/list';
+export { default as __experimentalBlockNavigationToolbar } from './block-navigation/toolbar';
export { default as __experimentalBlockPatterns } from './block-patterns';
export { default as __experimentalBlockVariationPicker } from './block-variation-picker';
export { default as BlockVerticalAlignmentToolbar } from './block-vertical-alignment-toolbar';
diff --git a/packages/edit-navigation/src/components/menu-editor/navigation-structure-panel.js b/packages/edit-navigation/src/components/menu-editor/navigation-structure-panel.js
index 147e894bcd95e1..99b218992aa073 100644
--- a/packages/edit-navigation/src/components/menu-editor/navigation-structure-panel.js
+++ b/packages/edit-navigation/src/components/menu-editor/navigation-structure-panel.js
@@ -1,11 +1,20 @@
/**
* WordPress dependencies
*/
-import { __experimentalBlockNavigationList } from '@wordpress/block-editor';
+import {
+ __experimentalBlockNavigationToolbar as BlockNavigationToolbar,
+ __experimentalBlockNavigationList as BlockNavigationList,
+} from '@wordpress/block-editor';
import { Panel, PanelBody } from '@wordpress/components';
+import { useDispatch, useSelect } from '@wordpress/data';
import { __ } from '@wordpress/i18n';
export default function NavigationStructurePanel( { blocks, initialOpen } ) {
+ const selectedBlockClientIds = useSelect( ( select ) =>
+ select( 'core/block-editor' ).getSelectedBlockClientIds()
+ );
+
+ const { selectBlock } = useDispatch( 'core/block-editor' );
return (