import { FC, Fragment } from "react"; import { observer } from "mobx-react-lite"; // hooks import { PageHead } from "@/components/core"; import { useProjectPages, usePage } from "@/hooks/store"; // components import { PageDetailRootLoader } from "./"; type TPageDetailRoot = { projectId: string; pageId: string; }; export const PageDetailRoot: FC = observer((props) => { const { projectId, pageId } = props; // hooks const { loader } = useProjectPages(projectId); const { id, name } = usePage(pageId); if (loader === "init-loader") return ; if (!id) return
No page is available.
; return (
{/* header left container */}
Icon
{/* header editor tool container */}
Editor keys
{/* header right operations container */}
right saved
{/* editor container for small screens */}
Editor keys
{/* editor table of content content container */}
Table of content
{/* editor container */}
Editor Container
); });