import { createRoot } from 'react-dom/client' import { X } from 'lucide-react' import { AdminLibraryPanel } from '../pages/AdminLibraryPanel' export function openManageLibrariesDialog(): Promise { return new Promise((resolve) => { const host = document.createElement('div') document.body.appendChild(host) const root = createRoot(host) const close = () => { root.unmount() host.remove() resolve() } root.render() }) } function ManageLibrariesDialog({ onClose }: { onClose: () => void }) { return (
event.stopPropagation()} >

管理媒体库

) }