| 1 |
import { useBlockProps, InnerBlocks } from "@wordpress/block-editor"; |
| 2 |
|
| 3 |
const SmartListsSave = ({ attributes }) => { |
| 4 |
const blockProps = useBlockProps.save(); |
| 5 |
|
| 6 |
const { uniqueId, smartListsLayout, dividerEnable, additionalCssClass, listOrientation } = attributes; |
| 7 |
|
| 8 |
return ( |
| 9 |
<div {...blockProps}> |
| 10 |
<ul |
| 11 |
id={uniqueId} |
| 12 |
className={`sp-smart-post-smart-lists-wrapper sp-smart-post-smart-lists-front-end ${smartListsLayout} ${dividerEnable ? "divider" : ""} sp-list-orientation-${listOrientation} ${additionalCssClass}`} |
| 13 |
> |
| 14 |
<InnerBlocks.Content /> |
| 15 |
</ul> |
| 16 |
</div> |
| 17 |
); |
| 18 |
}; |
| 19 |
|
| 20 |
export default SmartListsSave; |
| 21 |
|