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