UNPKG

@wordpress/block-library

Version:
16 lines (11 loc) 398 B
/** * 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 } />; }