diff --git a/packages/block-editor/src/components/inserter/inserter-content-navigator.js b/packages/block-editor/src/components/inserter/inserter-content-navigator.js index 96187b743cc59f..de97fac0c1003d 100644 --- a/packages/block-editor/src/components/inserter/inserter-content-navigator.js +++ b/packages/block-editor/src/components/inserter/inserter-content-navigator.js @@ -3,42 +3,65 @@ */ import { isRTL } from '@wordpress/i18n'; import { - __experimentalItemGroup as ItemGroup, - __experimentalItem as Item, __experimentalHStack as HStack, + __experimentalVStack as VStack, __experimentalNavigatorProvider as NavigatorProvider, __experimentalNavigatorScreen as NavigatorScreen, __experimentalNavigatorButton as NavigatorButton, - FlexBlock, + privateApis as componentsPrivateApis, } from '@wordpress/components'; import { Icon, chevronRight, chevronLeft } from '@wordpress/icons'; +/** + * Internal dependencies + */ +import { unlock } from '../../lock-unlock'; + +const { + CompositeV2: Composite, + CompositeItemV2: CompositeItem, + useCompositeStoreV2: useCompositeStore, +} = unlock( componentsPrivateApis ); + export default function InserterContentNavigator( { categories, children } ) { + const compositeStore = useCompositeStore( { orientation: 'vertical' } ); + return ( - - { categories.map( ( category ) => ( - - - { category.label } - - - - ) ) } - + + + { categories.map( ( category ) => ( + + + { category.label } + + + + } + /> + ) ) } + + { categories.map( ( category ) => (