CONTENT-WP-0002-T02 reads kinds from each snapshot and serves both example dataspaces without oncology imports. Assistant: grok Assistant-Session: 01a1346c-fdff-7741-b1af-b7283661554b
15 lines
668 B
TypeScript
15 lines
668 B
TypeScript
import type { Metadata } from "next";
|
|
import { DataspaceHome } from "@/components/DataspaceHome";
|
|
import { findDataspace } from "@/lib/catalog";
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ dataspace: string }> }): Promise<Metadata> {
|
|
const { dataspace } = await params;
|
|
const view = findDataspace(dataspace);
|
|
if (!view) return { title: "Content Explorer" };
|
|
return { title: `${view.title} · Content Explorer`, description: view.description };
|
|
}
|
|
|
|
export default async function DataspacePage({ params }: { params: Promise<{ dataspace: string }> }) {
|
|
const { dataspace } = await params;
|
|
return <DataspaceHome id={dataspace} />;
|
|
}
|