All checks were successful
synthetic / suite (push) Successful in 56s
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
17 lines
743 B
TypeScript
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} />
|
|
</>
|
|
);
|
|
}
|