woocommerce/packages/woocommerce-blocks/assets/js/blocks/reviews/save.js
2021-12-10 12:03:04 +00:00

22 lines
403 B
JavaScript

/**
* External dependencies
*/
import { useBlockProps } from '@wordpress/block-editor';
/**
* Internal dependencies
*/
import './editor.scss';
import { getBlockClassName, getDataAttrs } from './utils.js';
export default ( { attributes } ) => {
return (
<div
{ ...useBlockProps.save( {
className: getBlockClassName( attributes ),
} ) }
{ ...getDataAttrs( attributes ) }
/>
);
};