woocommerce/plugins/woocommerce-blocks/assets/js/blocks/single-product/deprecated.tsx

29 lines
555 B
TypeScript

/**
* External dependencies
*/
import { InnerBlocks, useBlockProps } from '@wordpress/block-editor';
/**
* Internal dependencies
*/
import metadata from './block.json';
const v1 = {
attributes: metadata.attributes,
supports: metadata.supports,
save: () => {
const blockProps = useBlockProps.save();
return (
<div { ...blockProps }>
{ /* @ts-expect-error: `InnerBlocks.Content` is a component that is typed in WordPress core*/ }
<InnerBlocks.Content />
</div>
);
},
};
const deprecated = [ v1 ];
export default deprecated;