UNPKG

@wordpress/block-library

Version:
18 lines (13 loc) 516 B
/** * 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 } />; }