PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.3
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.3
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / blocks / markdown / save.js

save.js in Block Animations, Motion & Scroll Effects – Ghost Kit 3.3.3, at gutenberg/blocks/markdown/save.js

24 lines 499 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import classnames from 'classnames/dedupe';
2
3 import { useBlockProps } from '@wordpress/block-editor';
4
5 import MDRender from './render';
6
7 /**
8 * Block Save Class.
9 *
10 * @param props
11 */
12 export default function BlockSave(props) {
13 const { attributes } = props;
14 const { content } = attributes;
15
16 let { className } = attributes;
17
18 className = classnames('ghostkit-markdown', className);
19
20 const blockProps = useBlockProps.save({ className });
21
22 return <MDRender content={content} {...blockProps} />;
23 }
24