@wordpress/block-library
Version:
Block library for the WordPress editor.
18 lines (13 loc) • 516 B
JavaScript
/**
* WordPress dependencies
*/
import { useBlockProps, useInnerBlocksProps } from '@wordpress/block-editor';
export default function Save( { attributes } ) {
const { anchor } = attributes;
const tabPanelId = anchor;
// eslint-disable-next-line react-compiler/react-compiler
const blockProps = useBlockProps.save();
// eslint-disable-next-line react-compiler/react-compiler
const innerBlocksProps = useInnerBlocksProps.save( blockProps );
return <section { ...innerBlocksProps } id={ tabPanelId } />;
}