import clsx from 'clsx'; import { InnerBlocks, RichText, useBlockProps } from '@wordpress/block-editor'; import type { BlockSaveProps } from '@wordpress/blocks'; import type { QuoteAttributes } from './types'; export default function save( { attributes, }: BlockSaveProps< QuoteAttributes > ) { const { textAlign, citation } = attributes; const className = clsx( { [ `has-text-align-${ textAlign }` ]: textAlign, } ); return (
{ ! RichText.isEmpty( citation ) && ( ) }
); }