diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-image-gallery/edit.tsx b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-image-gallery/edit.tsx index b4f50c9ca6a..d4c8cf72db9 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-image-gallery/edit.tsx +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-image-gallery/edit.tsx @@ -2,11 +2,8 @@ * External dependencies */ import { WC_BLOCKS_IMAGE_URL } from '@woocommerce/block-settings'; -import { isEmptyObject } from '@woocommerce/types'; import { useBlockProps } from '@wordpress/block-editor'; -import { BlockAttributes } from '@wordpress/blocks'; import { Disabled } from '@wordpress/components'; -import type { BlockEditProps } from '@wordpress/blocks'; /** * Internal dependencies @@ -35,30 +32,16 @@ const Placeholder = () => { ); }; -type Context = { - postId: string; - postType: string; - queryId: string; -}; - -interface Props extends BlockEditProps< BlockAttributes > { - context: Context; -} - -const Edit = ( { context }: Props ) => { +const Edit = () => { const blockProps = useBlockProps(); - if ( isEmptyObject( context ) ) { - return ( -