/** * External dependencies */ import { BlockInstance } from '@wordpress/blocks'; import { memo } from 'react'; /** * Internal dependencies */ import BlockPreview from './block-preview'; import Iframe from './iframe'; import { ChangeHandler } from './hooks/use-editor-blocks'; export const BlockEditor = memo( ( { renderedBlocks, settings, additionalStyles, isScrollable, onClickNavigationItem, onChange, }: { renderedBlocks: BlockInstance[]; settings: Record< string, unknown > & { styles: string[]; }; additionalStyles: string; isScrollable: boolean; onClickNavigationItem: ( event: MouseEvent ) => void; onChange: ChangeHandler; } ) => { return (