import React, { FC } from "react";
import { observer } from "mobx-react-lite";
// hooks
import { Loader } from "@plane/ui";
import { EmptyState } from "@/components/empty-state";
import { PagesListView } from "@/components/pages/pages-list";
import { EmptyStateType } from "@/constants/empty-state";
import { replaceUnderscoreIfSnakeCase } from "@/helpers/string.helper";
import { useApplication } from "@/hooks/store";
import { useProjectPages } from "@/hooks/store/use-project-specific-pages";
// components
// ui
// helpers
// constants
export const RecentPagesList: FC = observer(() => {
// store hooks
const { commandPalette: commandPaletteStore } = useApplication();
const { recentProjectPages } = useProjectPages();
// FIXME: replace any with proper type
const isEmpty = recentProjectPages && Object.values(recentProjectPages).every((value: any) => value.length === 0);
if (!recentProjectPages) {
return (