/** * External dependencies */ import { AlignmentToolbar, BlockControls, PlainText, useBlockProps, } from '@wordpress/block-editor'; /** * Internal dependencies */ import './editor.scss'; interface props { attributes: { label: string; alignment: string }; setAttributes: ( attributes: Record< string, unknown > ) => void; } export const Edit = ( { attributes, setAttributes }: props ): JSX.Element => { const { alignment, label } = attributes; return (
{