import { RichText, useBlockProps as blockProps } from '@wordpress/block-editor'; import { HeaderType } from '../editor/components/HeaderType'; import { Attributes } from '../types'; import { fontFamilyLong, maybeClamp } from '../util/fonts'; import { CopyButton } from './CopyButton'; import './style.css'; export const BlockOutput = ({ attributes }: { attributes: Attributes }) => (
{attributes.code?.length > 0 ? ( <> {attributes.copyButton && ( )} ) : null}
);