@wordpress/block-library
Version:
Block library for the WordPress editor.
21 lines (18 loc) • 537 B
JavaScript
import { createElement } from "@wordpress/element";
/**
* WordPress dependencies
*/
import { InnerBlocks } from '@wordpress/block-editor';
export default function save(_ref) {
let {
attributes
} = _ref;
if (attributes.ref) {
// Avoid rendering inner blocks when a ref is defined.
// When this id is defined the inner blocks are loaded from the
// `wp_navigation` entity rather than the hard-coded block html.
return;
}
return createElement(InnerBlocks.Content, null);
}
//# sourceMappingURL=save.js.map