2021-09-16 09:32:48 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { useBlockProps } from '@wordpress/block-editor';
|
|
|
|
|
2019-08-23 14:48:48 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './editor.scss';
|
2020-08-04 08:29:02 +00:00
|
|
|
import { getBlockClassName, getDataAttrs } from './utils.js';
|
2019-08-23 14:48:48 +00:00
|
|
|
|
|
|
|
export default ( { attributes } ) => {
|
|
|
|
return (
|
2019-09-09 10:52:48 +00:00
|
|
|
<div
|
2021-09-16 09:32:48 +00:00
|
|
|
{ ...useBlockProps.save( {
|
|
|
|
className: getBlockClassName( attributes ),
|
|
|
|
} ) }
|
2020-08-04 08:29:02 +00:00
|
|
|
{ ...getDataAttrs( attributes ) }
|
2019-09-09 10:52:48 +00:00
|
|
|
/>
|
2019-08-23 14:48:48 +00:00
|
|
|
);
|
|
|
|
};
|