@wordpress/block-library
Version:
Block library for the WordPress editor.
16 lines (11 loc) • 398 B
JavaScript
/**
* WordPress dependencies
*/
import { useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor';
export default function save( { attributes } ) {
const { anchor } = attributes;
const tabPanelId = anchor;
const blockProps = useBlockProps.save();
const innerBlocksProps = useInnerBlocksProps.save( blockProps );
return <section { ...innerBlocksProps } id={ tabPanelId } />;
}