UNPKG

@wordpress/block-library

Version:
30 lines (28 loc) 755 B
import { createElement } from "@wordpress/element"; /** * External dependencies */ import classnames from 'classnames'; /** * WordPress dependencies */ import { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor'; export default function save(_ref) { let { attributes } = _ref; const { isStackedOnMobile, verticalAlignment } = attributes; const className = classnames({ [`are-vertically-aligned-${verticalAlignment}`]: verticalAlignment, [`is-not-stacked-on-mobile`]: !isStackedOnMobile }); const blockProps = useBlockProps.save({ className }); const innerBlocksProps = useInnerBlocksProps.save(blockProps); return createElement("div", innerBlocksProps); } //# sourceMappingURL=save.js.map