mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
499 B
19 lines
499 B
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
|
|
*/
|
|
|
|
import { h, render } from 'preact';
|
|
import { OverlayContainer } from './components/overlay-container';
|
|
|
|
let element: HTMLDivElement | null = null;
|
|
|
|
export function renderOverlay(baseUrl: string | null | undefined) {
|
|
if (!element) {
|
|
element = document.body.appendChild(document.createElement('div'));
|
|
}
|
|
|
|
render(<OverlayContainer baseUrl={baseUrl} />, element)
|
|
}
|