Skip to content

Open source alternative to Semrush and Ahrefs

698 B
Raw Blame
import { createFileRoute } from "@tanstack/react-router";
import { LighthouseIssuesScreen } from "@/client/features/lighthouse/issues/LighthouseIssuesScreen";
import { lighthouseIssuesSearchSchema } from "@/types/schemas/lighthouse";

export const Route = createFileRoute(
  "/_app/p/$projectId/audit/issues/$resultId",
)({
  validateSearch: lighthouseIssuesSearchSchema,
  component: AuditIssuesPage,
});

function AuditIssuesPage() {
  const { projectId, resultId } = Route.useParams();
  const { auditId, category } = Route.useSearch();

  return (
    <LighthouseIssuesScreen
      projectId={projectId}
      resultId={resultId}
      category={category}
      auditId={auditId}
    />
  );
}