Files
chrmc40 8e3dceae99 ComfyUI-PromptChain
A prompt-authoring and image-iteration suite for ComfyUI.
2026-06-17 19:35:25 -07:00

20 lines
456 B
JavaScript

// Sidebar entry point — exports mount/destroy for the asset browser panel.
import { mount, unmount } from "svelte";
import AssetBrowser from "./components/sidebar/AssetBrowser.svelte";
let instance = null;
export function mountSidebar(target, props) {
destroySidebar();
instance = mount(AssetBrowser, { target, props });
return instance;
}
export function destroySidebar() {
if (instance) {
unmount(instance);
instance = null;
}
}