--- import CC from "./licenses/CC.astro"; import WTFPL from "./licenses/WTFPL.astro"; import { CREATIVE_COMMONS_LICENSES, LICENSES } from "../consts.ts"; export interface Props { title: string; author: string; email?: string; website?: string; dateCreated: Date; license?: typeof LICENSES[number]; } let { license = "public domain" } = Astro.props; let Notice = undefined; if (license === "WTFPL") { Notice = WTFPL; } else if ( CREATIVE_COMMONS_LICENSES.some((x) => license.localeCompare(x) === 0) ) { Notice = CC; } --- {Notice &&