@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
14 lines (11 loc) • 404 B
JavaScript
'use client';
import { useAppElement } from "../ThemeProvider/AppElementContext.mjs";
//#region src/Popover/PopoverPortal.tsx
const usePopoverPortalContainer = (root) => {
const appElement = useAppElement();
if (typeof document === "undefined") return null;
return root ?? appElement ?? document.body;
};
//#endregion
export { usePopoverPortalContainer };
//# sourceMappingURL=PopoverPortal.mjs.map