plane/web/components/pages/pages-list/shared-pages-list.tsx
2023-12-14 17:26:16 +05:30

24 lines
609 B
TypeScript

import { FC } from "react";
import { observer } from "mobx-react-lite";
// components
import { PagesListView } from "components/pages/pages-list";
// hooks
import { usePage } from "hooks/store";
// ui
import { Loader } from "@plane/ui";
export const SharedPagesList: FC = observer(() => {
const { publicProjectPages } = usePage();
if (!publicProjectPages)
return (
<Loader className="space-y-4">
<Loader.Item height="40px" />
<Loader.Item height="40px" />
<Loader.Item height="40px" />
</Loader>
);
return <PagesListView pages={publicProjectPages} />;
});