import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { getBenchmark } from "@/lib/benchmarks"; import { targetName } from "@/lib/benchmark-view"; import { BenchmarkDetail } from "./benchmark-detail"; export const dynamic = "force-dynamic"; export async function generateMetadata({ params }: PageProps<"/benchmarks/[id]">): Promise { const run = await getBenchmark((await params).id); return { title: run ? `${run.label ?? targetName(run.snapshot)} ยท Benchmark` : "Benchmark" }; } export default async function BenchmarkPage({ params }: PageProps<"/benchmarks/[id]">) { const run = await getBenchmark((await params).id); if (!run) notFound(); return ; }