2021-10-19 11:23:33 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { useBlockProps } from '@wordpress/block-editor';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import Block from './block';
|
2021-10-25 15:31:22 +00:00
|
|
|
|
|
|
|
export const Edit = ( {
|
|
|
|
attributes,
|
|
|
|
}: {
|
|
|
|
attributes: { className: string };
|
|
|
|
} ): JSX.Element => {
|
|
|
|
const { className } = attributes;
|
2021-10-19 11:23:33 +00:00
|
|
|
const blockProps = useBlockProps();
|
|
|
|
return (
|
|
|
|
<div { ...blockProps }>
|
2021-10-25 15:31:22 +00:00
|
|
|
<Block className={ className } />
|
2021-10-19 11:23:33 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const Save = (): JSX.Element => {
|
|
|
|
return <div { ...useBlockProps.save() } />;
|
|
|
|
};
|