// SPDX-FileCopyrightText: 2026 Progmasoft // SPDX-License-Identifier: AGPL-3.0-or-later import type { ReactNode } from "react"; import { Footer } from "@/components/Footer"; import { SiteHeader } from "@/components/SiteHeader"; import { getLicenseMessages, type LicensePage, licensePages, licensePageTitle, pmSplTexts, } from "@/lib/license-messages"; import type { Locale } from "@/lib/localization"; /** The frame of every page of license.progmasoft.com. */ export function LicenseFrame({ locale, title, description, current, children, }: Readonly<{ locale: Locale; title: string; description: string; /** The page of PM-SPL 1.0 being shown, or nothing for the list. */ current?: LicensePage; children: ReactNode; }>) { const text = getLicenseMessages(locale); return (
{current ?

{text.short}

: null}

{title}

{description}

{current ? ( ) : null}
{children}

{text.notice}

); } /** The published texts of PM-SPL 1.0, each with its SHA-256 sums. */ export function LicenseTexts({ locale }: Readonly<{ locale: Locale }>) { const text = getLicenseMessages(locale); return ( ); }