woocommerce/plugins/woocommerce-blocks/assets/js/blocks/product-collection/save.tsx

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 } />;
}