+
+ {
+ setAddNewBlockOpened(false);
+ onMutateBlock(id, value);
+ }
+ : null
+ }
+ onInsertBlock={
+ onInsertBlock
+ ? (id, value) => {
+ setAddNewBlockOpened(false);
+ onInsertBlock(id, value);
+ }
+ : null
+ }
+ currentBlock={block}
+ allowedBlocks={allowedBlocks}
+ blocksConfig={blocksConfig}
+ properties={properties}
+ showRestricted={showRestricted}
+ ref={blockChooserRef}
+ />
+
+
+ )}
+ >
+ );
+};
+
+export default BlockChooserButton;