import { PageHeader } from "@/components/PageHeader";
import { RecordLink } from "@/components/RecordLink";
import type { EntityView, RelationItem } from "@/lib/catalog";
/**
* Generic record page: title, summary, sources, claims, and neighbouring relations.
* OnCo EntityDetail was not copied. That file special-cases domain panels.
*/
function RelationBlock({
headingId,
title,
relations,
}: {
headingId: string;
title: string;
relations: RelationItem[];
}) {
return (
No {title.toLowerCase()} relations.{title}
{relations.length === 0 ? (
{relations.map((relation) => (
)}
{entity.glossary}
) : null}{entity.summary}
{entity.tags.length > 0 ? (No sources.
) : ({source.uri ? {source.attribution} : source.attribution} {source.licenseUrl ? <> · {source.license}> : null} {source.retrievedAt ? <> · retrieved {source.retrievedAt}> : null} {source.originSha ? <> · origin {source.originSha}> : null} {source.license === "CC-BY-NC-4.0" ? <> · NonCommercial> : null} {source.modificationNotice ? <> · {source.modificationNotice}> : null}
) : null}No claims.
) : ({entity.relationRemainder} more relations are not listed.
) : null}No members.
) : (Open graph {" · "} Back to {entity.kindLabel}