Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
blocks
/
cart
/
inner-blocks
/
cart-accepted-payment-methods-block
:
edit.tsx
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { useBlockProps } from '@wordpress/block-editor'; /** * Internal dependencies */ import Block from './block'; export const Edit = ( { attributes, }: { attributes: { className: string }; } ): JSX.Element => { const { className } = attributes; const blockProps = useBlockProps(); return ( <div { ...blockProps }> <Block className={ className } /> </div> ); }; export const Save = (): JSX.Element => { return <div { ...useBlockProps.save() } />; };