/** * External dependencies */ import { addFilter } from '@wordpress/hooks'; import { __ } from '@wordpress/i18n'; import { Dropdown } from '@wordpress/components'; import * as Woo from '@woocommerce/components'; import { Fragment } from '@wordpress/element'; /** * Internal dependencies */ import './index.scss'; const MyExamplePage = () => ( setInlineSelect( items ) } inlineTags /> ( ) } renderContent={ () =>

Dropdown content here

} />
{ __( 'Pill Shape Container', '{{textdomain}}' ) } I am a spinner!
); addFilter( 'woocommerce_admin_pages_list', '{{slug}}', ( pages ) => { pages.push( { container: MyExamplePage, path: '/{{slug}}', breadcrumbs: [ __( '{{title}}', '{{textdomain}}' ) ], navArgs: { id: '{{slugSnakeCase}}', }, } ); return pages; } );