Open source alternative to Semrush and Ahrefs
TypeScript backlink-analysisgoogle-search-console-mcpkeyword-researchmcpseoseo-agentseo-auditseo-automationseo-skillsseo-toolssite-audit
import { useQuery } from "@tanstack/react-query";
import { BackLink, PageHeader } from "@/client/components/PageHeader";
import { projectsQueryOptions } from "./projectQueries";
export function ProjectPageHeader({
projectId,
title,
showBackLink = false,
}: {
projectId: string;
title: string;
showBackLink?: boolean;
}) {
const projectsQuery = useQuery(projectsQueryOptions());
const project = projectsQuery.data?.find((entry) => entry.id === projectId);
return (
<PageHeader
title={title}
description={project?.name ?? " "}
backLink={
showBackLink ? <BackLink to="/projects">Projects</BackLink> : undefined
}
/>
);
}