/** * WordPress dependencies */ import { registerBlockType } from '@wordpress/blocks'; import { useBlockProps } from '@wordpress/block-editor'; import { Placeholder } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import { BeyondwordsIcon } from '../icon'; registerBlockType( 'beyondwords/player', { icon: , edit: function Edit() { const blockProps = useBlockProps(); // The live player only renders on the front end; show a static // Placeholder marking where it will appear. return (
} label={ __( 'BeyondWords Player', 'speechkit' ) } instructions={ __( 'The BeyondWords audio player will appear here.', 'speechkit' ) } />
); }, save: function Save() { const blockProps = useBlockProps.save( { contentEditable: false } ); return (
); }, } );