import { FC } from "react"; import Link from "next/link"; import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; import { Plus } from "lucide-react"; // hooks import { useMobxStore } from "lib/mobx/store-provider"; // ui import { Breadcrumbs, BreadcrumbItem, Button } from "@plane/ui"; // helper import { truncateText } from "helpers/string.helper"; export interface IPagesHeaderProps { showButton?: boolean; } export const PagesHeader: FC = observer((props) => { const { showButton = false } = props; const router = useRouter(); const { workspaceSlug, projectId } = router.query; const { project: projectStore } = useMobxStore(); const projectDetails = workspaceSlug && projectId ? projectStore.getProjectById(workspaceSlug.toString(), projectId.toString()) : undefined; return (
router.back()}>

Projects

} />
{showButton && (
)}
); });