UNPKG

@wordpress/block-library

Version:
1 lines • 604 B
{"version":3,"file":"save.mjs","names":[],"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,oBAAC,YAAY,SAAb,CAAsB,CAAA;AAC9B"}