mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
26 lines
656 B
TypeScript
26 lines
656 B
TypeScript
|
import { FC } from "react";
|
||
|
import { observer } from "mobx-react-lite";
|
||
|
// components
|
||
|
import { PagesListView } from "components/pages/pages-list";
|
||
|
// hooks
|
||
|
import { useMobxStore } from "lib/mobx/store-provider";
|
||
|
// ui
|
||
|
import { Loader } from "@plane/ui";
|
||
|
|
||
|
export const ArchivedPagesList: FC = observer(() => {
|
||
|
const {
|
||
|
page: { archivedProjectPages },
|
||
|
} = useMobxStore();
|
||
|
|
||
|
if (!archivedProjectPages)
|
||
|
return (
|
||
|
<Loader className="space-y-4">
|
||
|
<Loader.Item height="40px" />
|
||
|
<Loader.Item height="40px" />
|
||
|
<Loader.Item height="40px" />
|
||
|
</Loader>
|
||
|
);
|
||
|
|
||
|
return <PagesListView pages={archivedProjectPages} />;
|
||
|
});
|