UNPKG

@wordpress/block-editor

Version:
32 lines (26 loc) 651 B
/** * WordPress dependencies */ import { PanelBody } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import BlockQuickNavigation from '../block-quick-navigation'; const ContentTab = ( { contentClientIds } ) => { if ( ! contentClientIds || contentClientIds.length === 0 ) { return null; } const shouldShowBlockFields = window?.__experimentalContentOnlyInspectorFields; return ( <> { ! shouldShowBlockFields && ( <PanelBody title={ __( 'Content' ) }> <BlockQuickNavigation clientIds={ contentClientIds } /> </PanelBody> ) } </> ); }; export default ContentTab;