import { FC } from "react"; import { observer } from "mobx-react"; // hooks import { useProjectPages } from "@/hooks/store"; // components import { PageListBlock } from "./"; type TPagesListRoot = { workspaceSlug: string; projectId: string; }; export const PagesListRoot: FC = observer((props) => { const { workspaceSlug, projectId } = props; // hooks const { filteredPageIds } = useProjectPages(projectId); if (!filteredPageIds) return <>; return (
{filteredPageIds.map((pageId) => ( ))}
); });