diff --git a/packages/edit-post/src/components/header/plugin-more-menu-item/index.js b/packages/edit-post/src/components/header/plugin-more-menu-item/index.js index 6725ef95185548..6e8c4daa24d461 100644 --- a/packages/edit-post/src/components/header/plugin-more-menu-item/index.js +++ b/packages/edit-post/src/components/header/plugin-more-menu-item/index.js @@ -3,6 +3,7 @@ */ import { ActionItem } from '@wordpress/interface'; import { compose } from '@wordpress/compose'; +import { MenuItem } from '@wordpress/components'; import { withPluginContext } from '@wordpress/plugins'; /** @@ -64,6 +65,7 @@ import { withPluginContext } from '@wordpress/plugins'; export default compose( withPluginContext( ( context, ownProps ) => { return { + as: ownProps.as ?? MenuItem, icon: ownProps.icon || context.icon, name: 'core/edit-post/plugin-more-menu', }; diff --git a/packages/edit-site/src/components/header/plugin-more-menu-item/index.js b/packages/edit-site/src/components/header/plugin-more-menu-item/index.js index 1c9707074f90f4..e507b1bf2fbc59 100644 --- a/packages/edit-site/src/components/header/plugin-more-menu-item/index.js +++ b/packages/edit-site/src/components/header/plugin-more-menu-item/index.js @@ -3,6 +3,7 @@ */ import { ActionItem } from '@wordpress/interface'; import { compose } from '@wordpress/compose'; +import { MenuItem } from '@wordpress/components'; import { withPluginContext } from '@wordpress/plugins'; /** @@ -64,6 +65,7 @@ import { withPluginContext } from '@wordpress/plugins'; export default compose( withPluginContext( ( context, ownProps ) => { return { + as: ownProps.as ?? MenuItem, icon: ownProps.icon || context.icon, name: 'core/edit-site/plugin-more-menu', };