| 1 |
import { useBlockProps, InnerBlocks } from "@wordpress/block-editor"; |
| 2 |
const ButtonsSave = ({ attributes }) => { |
| 3 |
// Destructure attributes |
| 4 |
const { uniqueId, additionalCssClass } = attributes; |
| 5 |
|
| 6 |
const blockProps = useBlockProps.save({ |
| 7 |
className: additionalCssClass, |
| 8 |
}); |
| 9 |
|
| 10 |
return ( |
| 11 |
<div {...blockProps}> |
| 12 |
<div id={uniqueId} className={`sp-smart-post-buttons-front-page sp-smart-post-buttons-wrapper`}> |
| 13 |
<InnerBlocks.Content /> |
| 14 |
</div> |
| 15 |
</div> |
| 16 |
); |
| 17 |
}; |
| 18 |
|
| 19 |
export default ButtonsSave; |
| 20 |
|