woocommerce/plugins/woocommerce-blocks/assets/js/blocks/product-new/edit.tsx

23 lines
435 B
TypeScript
Raw Normal View History

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