import { FC } from "react"; import { useRouter } from "next/router"; import Link from "next/link"; import { ArrowLeft } from "lucide-react"; // ui import { BreadcrumbItem, Breadcrumbs } from "@plane/ui"; // helper import { truncateText } from "helpers/string.helper"; // hooks import { useMobxStore } from "lib/mobx/store-provider"; import { observer } from "mobx-react-lite"; export interface IProjectSettingHeader { title: string; } export const ProjectSettingHeader: FC = observer((props) => { const { title } = props; const router = useRouter(); const { workspaceSlug, projectId } = router.query; // store const { project: projectStore } = useMobxStore(); const projectDetails = projectId ? projectStore.project_details[projectId.toString()] : null; return (
router.back()}>

{`${truncateText(projectDetails?.name ?? "Project", 32)}`}

} />
); });