woocommerce/plugins/woocommerce-blocks/assets/js/blocks/product-best-sellers/edit.tsx

21 lines
408 B
TypeScript

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