@wordpress/blocks
Version:
Block API for WordPress.
22 lines (19 loc) • 474 B
text/typescript
/**
* WordPress dependencies
*/
import deprecated from '@wordpress/deprecated';
/**
* A Higher Order Component used to inject BlockContent using context to the
* wrapped component.
*
* @deprecated
*
* @param OriginalComponent The component to enhance.
* @return The same component.
*/
export function withBlockContentContext< T >( OriginalComponent: T ): T {
deprecated( 'wp.blocks.withBlockContentContext', {
since: '6.1',
} );
return OriginalComponent;
}