The Nav Submenu block implements a lot of the same functionality as the Nav Link block.
Specifically I've noticed that the handling of creation of links is nearly identical.
In # we extracted the implementation of the Link UI to a <LinkUI> component within the Navigation Link block directly. Let's utilise this inside the Submenu block as well.
As both block's are within the block-library package it should be easy enough to achieve.
The Nav Submenu block implements a lot of the same functionality as the Nav Link block.
Specifically I've noticed that the handling of creation of links is nearly identical.
gutenberg/packages/block-library/src/navigation-submenu/edit.js
Line 665 in 60c33c4
In # we extracted the implementation of the Link UI to a
<LinkUI>component within the Navigation Link block directly. Let's utilise this inside the Submenu block as well.As both block's are within the
block-librarypackage it should be easy enough to achieve.