| 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 |
|