/** * External dependencies */ import { InnerBlocks, useBlockProps } from '@wordpress/block-editor'; /** * Internal dependencies */ import './editor.scss'; import { useForcedLayout, getAllowedBlocks } from '../../cart-checkout/shared'; export const AdditionalFields = ( { block, }: { // Name of the parent block. block: string; } ): JSX.Element => { const { 'data-block': clientId } = useBlockProps(); const allowedBlocks = getAllowedBlocks( block ); useForcedLayout( { clientId, registeredBlocks: allowedBlocks, } ); return (