UNPKG

@wordpress/block-library

Version:
30 lines (29 loc) 601 B
/** * External dependencies */ import clsx from 'clsx'; /** * WordPress dependencies */ import { RichText, useBlockProps } from '@wordpress/block-editor'; import { jsx as _jsx } from "react/jsx-runtime"; export default function save({ attributes }) { const { textAlign, content } = attributes; const className = clsx({ [`has-text-align-${textAlign}`]: textAlign }); return /*#__PURE__*/_jsx("pre", { ...useBlockProps.save({ className }), children: /*#__PURE__*/_jsx(RichText.Content, { value: content }) }); } //# sourceMappingURL=save.js.map