woocommerce/plugins/woocommerce-blocks/assets/js/blocks/product-top-rated/edit.tsx

21 lines
402 B
TypeScript
Raw Normal View History

/**
* External dependencies
*/
import { useBlockProps } from '@wordpress/block-editor';
/**
* Internal dependencies
*/
import { ProductTopRatedBlock } from './block';
import { Props } from './types';
export const Edit = ( props: unknown & Props ): JSX.Element => {
const blockProps = useBlockProps();
return (
<div { ...blockProps }>
<ProductTopRatedBlock { ...props } />
</div>
);
};