UNPKG

@wordpress/block-library

Version:
21 lines (20 loc) 595 B
/** * WordPress dependencies */ import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor'; import { jsx as _jsx } from "react/jsx-runtime"; export default function save({ attributes: { tagName: Tag, legacy } }) { const blockProps = useBlockProps.save(); const innerBlocksProps = useInnerBlocksProps.save(blockProps); // The legacy version is dynamic (i.e. PHP rendered) and doesn't allow inner // blocks, so nothing is saved in that case. return legacy ? null : /*#__PURE__*/_jsx(Tag, { ...innerBlocksProps }); } //# sourceMappingURL=save.js.map