2023-12-04 06:41:36 +00:00
|
|
|
import { FC } from "react";
|
|
|
|
import { observer } from "mobx-react-lite";
|
2023-03-25 18:09:46 +00:00
|
|
|
// components
|
2023-12-04 06:41:36 +00:00
|
|
|
import { PagesListView } from "components/pages/pages-list";
|
2023-03-25 18:09:46 +00:00
|
|
|
// fetch-keys
|
2023-12-04 06:41:36 +00:00
|
|
|
import { useMobxStore } from "lib/mobx/store-provider";
|
|
|
|
// ui
|
|
|
|
import { Loader } from "@plane/ui";
|
2023-03-25 18:09:46 +00:00
|
|
|
|
2023-12-04 06:41:36 +00:00
|
|
|
export const AllPagesList: FC = observer(() => {
|
|
|
|
// store
|
|
|
|
const {
|
|
|
|
page: { projectPages },
|
|
|
|
} = useMobxStore();
|
2023-03-25 18:09:46 +00:00
|
|
|
|
2023-12-04 06:41:36 +00:00
|
|
|
if (!projectPages)
|
|
|
|
return (
|
|
|
|
<Loader className="space-y-4">
|
|
|
|
<Loader.Item height="40px" />
|
|
|
|
<Loader.Item height="40px" />
|
|
|
|
<Loader.Item height="40px" />
|
|
|
|
</Loader>
|
|
|
|
);
|
2023-03-25 18:09:46 +00:00
|
|
|
|
2023-12-04 06:41:36 +00:00
|
|
|
return <PagesListView pages={projectPages} />;
|
|
|
|
});
|