import { useGlobal } from "web-utils"; import { LiveGlobal } from "../logic/global"; import { LSection } from "./l-section"; import { Loading } from "../../../utils/ui/loading"; export const LPage = () => { const p = useGlobal(LiveGlobal, "LIVE"); const mode = p.mode; let childs = Object.values(p.page?.content_tree?.childs || []); if (p.layout.section && p.layout.content) { childs = [p.layout.section]; } const rootChilds: string[] | undefined = Object.values(childs).map( (e) => e.id ); return (