import type { BlockSaveProps } from '@wordpress/blocks'; import { RawHTML } from '@wordpress/element'; import type { MoreAttributes } from './types'; export default function save( { attributes: { customText, noTeaser }, }: BlockSaveProps< MoreAttributes > ) { const moreTag = customText ? `` : ''; const noTeaserTag = noTeaser ? '' : ''; return ( { [ moreTag, noTeaserTag ].filter( Boolean ).join( '\n' ) } ); }