content-explorer/ui/components/KindIndex.tsx
tegwick f8c94d3272
All checks were successful
synthetic / suite (push) Successful in 56s
Finish the computing-basics pilot and the local OnCo reference slice.
The single-operator pilot keeps static projection. Local OnCo use requires a CC BY-NC origin notice, and the slice stays out of public CI.

Assistant: grok
Assistant-Session: 01a15378-f601-7fe2-a143-8e1500a1d59c
2026-10-19 13:04:55 +02:00

17 lines
743 B
TypeScript

import { OriginNotice } from "@/components/OriginNotice";
import { RecordBrowser } from "@/components/RecordBrowser";
import { PageHeader } from "@/components/PageHeader";
import type { KindView } from "@/lib/catalog";
/** Kind directory. The heading and rows come from the snapshot kind registry. */
export function KindIndex({ kind }: { kind: KindView }) {
const count = kind.rows.length;
const lede = count === 1 ? `1 record in ${kind.dataspaceTitle}.` : `${count} records in ${kind.dataspaceTitle}.`;
return (
<>
<PageHeader kicker={kind.dataspaceTitle} title={kind.plural} lede={lede} />
<OriginNotice dataspaceId={kind.dataspaceId} />
<RecordBrowser rows={kind.rows} columns={kind.columns} />
</>
);
}