/**
* External dependencies
*/
import { addFilter } from '@wordpress/hooks';
/**
* Internal dependencies
*/
import './index.scss';
const MyExamplePage = () =>
My Example Extension
;
addFilter( 'woocommerce_admin_pages_list', 'my-namespace', ( pages ) => {
pages.push( {
container: MyExamplePage,
path: '/example',
breadcrumbs: [ 'My Example Page' ],
navArgs: {
id: 'my-example-page',
},
} );
return pages;
} );