/** * External dependencies */ import { PlainText } from '@wordpress/block-editor'; import { withInstanceId } from '@wordpress/compose'; import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import './editor.scss'; interface BlockTitleProps { className: string; headingLevel: number; onChange: ( value: string ) => void; heading: string; instanceId: number; } const BlockTitle = ( { className, headingLevel, onChange, heading, instanceId, }: BlockTitleProps ) => { const TagName = `h${ headingLevel }` as keyof JSX.IntrinsicElements; return ( </TagName> ); }; export default withInstanceId( BlockTitle );