import { observer } from "mobx-react"; import { useRouter } from "next/router"; import { FileText } from "lucide-react"; // ui import { Breadcrumbs, Button } from "@plane/ui"; // components import { BreadcrumbLink } from "@/components/common"; import { ProjectLogo } from "@/components/project"; // hooks import { usePage, useProject } from "@/hooks/store"; import { usePlatformOS } from "@/hooks/use-platform-os"; export const PageDetailsHeader = observer(() => { // router const router = useRouter(); const { workspaceSlug, pageId } = router.query; // store hooks const { currentProjectDetails } = useProject(); const { isContentEditable, isSubmitting, name } = usePage(pageId?.toString() ?? ""); // use platform const { platform } = usePlatformOS(); // derived values const isMac = platform === "MacOS"; return (
) } /> } /> } /> } /> } /> } />
{isContentEditable && ( )}
); });