@wordpress/block-library
Version:
Block library for the WordPress editor.
26 lines (22 loc) • 482 B
JavaScript
/**
* WordPress dependencies
*/
import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor';
/**
* External dependencies
*/
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,
} ),
} )
) }
/>
);
}