import { FC } from "react"; import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; import { FileText, Plus } from "lucide-react"; // hooks import { useMobxStore } from "lib/mobx/store-provider"; // ui import { Breadcrumbs, Button } from "@plane/ui"; // helper import { renderEmoji } from "helpers/emoji.helper"; export interface IPagesHeaderProps { showButton?: boolean; } export const PagesHeader: FC = observer((props) => { const { showButton = false } = props; const router = useRouter(); const { workspaceSlug } = router.query; const { project: projectStore, commandPalette: commandPaletteStore } = useMobxStore(); const { currentProjectDetails } = projectStore; return (
{currentProjectDetails?.name.charAt(0)} ) } link={`/${workspaceSlug}/projects/${currentProjectDetails?.id}/issues`} /> } label="Pages" />
{showButton && (
)}
); });