export function getUrlForIframe(contentUrl:string):string { if (/https:\/\/www.figma.com/.test(contentUrl)) { return `https://www.figma.com/embed?embed_host=notion-embed&url=${contentUrl}` } else if (/https:\/\/gist.github.com/.test(contentUrl)) { return `data:text/html;charset=utf-8,` } else if (/https:\/\/lucid.app\/lucidchart/.test(contentUrl)) { const documentId = contentUrl.split('/')[4] return `https://lucid.app/documents/embedded/${documentId}` } return contentUrl }