UNPKG

@mikezimm/fps-library-v2

Version:

Library of reusable typescript/javascript functions, interfaces and constants

19 lines (17 loc) 837 B
/** * CodeAnalizerComment: Updated 1 imports on 2024-09-22 14:49:52 * Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;' */ /** * CodeAnalizerComment: Updated 1 imports on 2024-09-21 23:07:24 * Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;' */ import * as React from 'react'; export function getItemEmbed(props) { const { item, } = props; if (!item || !item.ServerRedirectedEmbedUrl) return undefined; const result = React.createElement("iframe", { src: item.ServerRedirectedEmbedUrl, height: props.height ? props.height : '350px', width: props.width ? props.width : '100%', style: { paddingTop: '20px' } }); return result; } //# sourceMappingURL=itemEmbed.js.map