11 lines
343 B
TypeScript
11 lines
343 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor';
|
|
|
|
export default function QuerySave( { attributes: { tagName: Tag = 'div' } } ) {
|
|
const blockProps = useBlockProps.save();
|
|
const innerBlocksProps = useInnerBlocksProps.save( blockProps );
|
|
return <Tag { ...innerBlocksProps } />;
|
|
}
|