mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-27 12:36:34 +00:00
16 lines
449 B
JavaScript
16 lines
449 B
JavaScript
import { h, render } from 'preact';
|
|
import Automation from './automation.js';
|
|
import Script from './script.js';
|
|
|
|
window.ScriptEditor = function (mountEl, props, mergeEl) {
|
|
return render(h(Script, props), mountEl, mergeEl);
|
|
};
|
|
|
|
window.AutomationEditor = function (mountEl, props, mergeEl) {
|
|
return render(h(Automation, props), mountEl, mergeEl);
|
|
};
|
|
|
|
window.unmountPreact = function (mountEl, mergeEl) {
|
|
render(() => null, mountEl, mergeEl);
|
|
};
|