@wordpress/block-library
Version:
Block library for the WordPress editor.
19 lines (16 loc) • 414 B
JavaScript
import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor';
import clsx from 'clsx';
export default function save( { attributes } ) {
const { type } = attributes;
return (
<div
{ ...useInnerBlocksProps.save(
useBlockProps.save( {
className: clsx( 'wp-block-form-submission-notification', {
[ `form-notification-type-${ type }` ]: type,
} ),
} )
) }
/>
);
}