'Insert a gutenberg block from InspectorControls area button click

i want to add custom Blocks from InspectorControls sidebar panel in Gutenberg blocks editor

you can check this screenshot.

https://prnt.sc/D7mK8vYTj_Gx

in InspectorControls panel, need a button to render custom blocks or inner blocks in the editor.

as like InnerBlocks blocks.

how to do this?

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source