UNPKG

@wordpress/block-library

Version:
1 lines • 651 B
{"version":3,"file":"save.cjs","names":["InnerBlocks"],"sources":["../../src/navigation/save.jsx"],"sourcesContent":["import { InnerBlocks } from '@wordpress/block-editor';\n\nexport default function save( { attributes } ) {\n\tif ( attributes.ref ) {\n\t\t// Avoid rendering inner blocks when a ref is defined.\n\t\t// When this id is defined the inner blocks are loaded from the\n\t\t// `wp_navigation` entity rather than the hard-coded block html.\n\t\treturn;\n\t}\n\treturn <InnerBlocks.Content />;\n}\n"],"mappings":";;;;;;;;AAEA,SAAwB,KAAM,EAAE,cAAe;CAC9C,IAAK,WAAW,KAIf;CAED,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACA,wBAAAA,YAAY,SAAb,CAAsB,CAAA;AAC9B"}