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

21 lines
494 B
TypeScript

/**
* External dependencies
*/
import { InnerBlocks, useBlockProps } from '@wordpress/block-editor';
const Save = () => {
// We add the `woocommerce` class to the wrapper to apply WooCommerce styles to the block.
const blockProps = useBlockProps.save( {
className: 'woocommerce',
} );
return (
<div { ...blockProps }>
{ /* @ts-expect-error: `InnerBlocks.Content` is a component that is typed in WordPress core*/ }
<InnerBlocks.Content />
</div>
);
};
export default Save;