UNPKG

@wordpress/block-library

Version:
1 lines • 750 B
{"version":3,"file":"save.mjs","names":[],"sources":["../../src/comments/save.jsx"],"sourcesContent":["import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor';\n\nexport default function save( { attributes: { tagName: Tag, legacy } } ) {\n\tconst blockProps = useBlockProps.save();\n\tconst innerBlocksProps = useInnerBlocksProps.save( blockProps );\n\n\t// The legacy version is dynamic (i.e. PHP rendered) and doesn't allow inner\n\t// blocks, so nothing is saved in that case.\n\treturn legacy ? null : <Tag { ...innerBlocksProps } />;\n}\n"],"mappings":";;;AAEA,SAAwB,KAAM,EAAE,YAAY,EAAE,SAAS,KAAK,YAAa;CACxE,MAAM,aAAa,cAAc,KAAK;CACtC,MAAM,mBAAmB,oBAAoB,KAAM,UAAW;CAI9D,OAAO,SAAS,OAAO,oBAAC,KAAD,EAAK,GAAK,iBAAoB,CAAA;AACtD"}