diff --git a/packages/edit-site/src/components/style-book/index.js b/packages/edit-site/src/components/style-book/index.js index d3e0cb3531ae9..7ecfdc3506cf8 100644 --- a/packages/edit-site/src/components/style-book/index.js +++ b/packages/edit-site/src/components/style-book/index.js @@ -8,7 +8,6 @@ import classnames from 'classnames'; */ import { Disabled, - TabPanel, privateApis as componentsPrivateApis, } from '@wordpress/components'; import { __, sprintf } from '@wordpress/i18n'; @@ -48,6 +47,7 @@ const { CompositeV2: Composite, CompositeItemV2: CompositeItem, useCompositeStoreV2: useCompositeStore, + Tabs, } = unlock( componentsPrivateApis ); // The content area of the Style Book is rendered within an iframe so that global styles @@ -253,22 +253,37 @@ function StyleBook( { > { resizeObserver } { showTabs ? ( - - { ( tab ) => ( - - ) } - +
+ + + { tabs.map( ( tab ) => ( + + { tab.title } + + ) ) } + + { tabs.map( ( tab ) => ( + + + + ) ) } + +
) : (