21 lines
351 B
TypeScript
21 lines
351 B
TypeScript
|
/**
|
||
|
* External dependencies
|
||
|
*/
|
||
|
import { useBlockProps } from '@wordpress/block-editor';
|
||
|
|
||
|
/**
|
||
|
* Internal dependencies
|
||
|
*/
|
||
|
import Block from './block';
|
||
|
import './editor.scss';
|
||
|
|
||
|
export const Edit = ( props: unknown ): JSX.Element => {
|
||
|
const blockProps = useBlockProps();
|
||
|
|
||
|
return (
|
||
|
<div { ...blockProps }>
|
||
|
<Block { ...props } />
|
||
|
</div>
|
||
|
);
|
||
|
};
|