import * as React from 'react'; import { BlockSaveProps } from '@wordpress/blocks'; import { EmbedMode, BlockAttributes } from './types'; const Save: React.FC> = ( { attributes: { formId, embedMode, seamlessEmbedCode, iframeEmbedCode } } ) => { let embedCode = ''; switch ( embedMode ) { case EmbedMode.Seamless: embedCode = seamlessEmbedCode; break; case EmbedMode.IFrame: embedCode = iframeEmbedCode; break; } return (
); }; export default Save;