--- /** * "Sources & further reading" plate for a sheet with secondary provenance. * * SheetCredit carries the one upstream a sheet *is* derived from, and sits * above the article as a header banner. This carries the sources a sheet * merely draws on — one row each — and sits at the foot, where a reader who * has finished the page is looking for where to go next. * * Licence wording is deliberately the same mapping SheetCredit uses. Two * panels describing the same upstream in different words is how a site ends * up implying a grant that does not exist, so `none` reads "no licence * published" in both places or in neither. */ import Icon from './Icon.astro'; import { url } from '../lib/url'; interface Reference { name: string; url: string; author?: string; license?: string; relation?: string; note?: string; } interface Props { references?: Reference[]; } const { references = [] } = Astro.props; const BADGE: Record = { verbatim: 'mirror', derived: 'derived', inspired: 'inspired', 'link-only': 'link', }; function licenceLabel(license?: string): string | null { if (!license) return null; if (license === 'none') return 'no licence published'; if (license === 'proprietary') return 'proprietary — all rights reserved'; return license; } --- {references.length > 0 && ( )}