// SPDX-FileCopyrightText: 2026 Progmasoft // SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1 import { forwardArrow, type Locale } from "@/lib/localization"; import { catalogText, type Catalog } from "@/lib/viget-catalogs"; /** * One group of catalogs on the ViGet home page. An open catalog is a link to its page; a catalog * that is not offered yet is a disabled button: gray, not pressable and leading nowhere. */ export function ViGetCatalogSection({ id, heading, description, catalogs, locale, muted = false, }: { id: string; heading: string; description: string; catalogs: readonly Catalog[]; locale: Locale; muted?: boolean; }) { const text = catalogText(locale); return (

{heading}

{description}

{catalogs.map((catalog) => catalog.path ? (

{catalog.name}

{text.holds[catalog.name]} {text.open} {forwardArrow(locale)}
) : ( ), )}
); }