/**
 * Save: serialize the inner blocks into post_content.
 *
 * This block is dynamic (gated by render.php), but it has InnerBlocks, so save()
 * must NOT return null — it returns a wrapper containing the serialized inner
 * blocks. WordPress renders those inner blocks at request time and hands the
 * resulting HTML to render.php as $content, which the gate then wraps.
 */
import { useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor';

export default function save() {
	const blockProps = useBlockProps.save();
	const innerBlocksProps = useInnerBlocksProps.save( blockProps );

	return <div { ...innerBlocksProps } />;
}
