import { AsciiBackground } from "./ascii-background"; import { IconMark } from "./icon-mark"; import { CONTACT_EMAIL, WEBSITE_URL } from "./site-constants"; import { platformDownloads } from "./release-links.generated"; import { ThemeToggle } from "./theme-toggle"; function findAsset(platformId: string, assetId: string) { const platform = platformDownloads.find((entry) => entry.id === platformId); if (!platform) { throw new Error(`Missing platform download entry for ${platformId}`); } const asset = platform.assets.find((entry) => entry.id === assetId); if (!asset) { throw new Error(`Missing asset ${assetId} for ${platformId}`); } return asset.href; } const footerGroups = [ { title: "Product", links: [ { label: "Features", href: "#features" }, { label: "How It Works", href: "#how-it-works" }, { label: "FAQ", href: "#faq" }, { label: "Download", href: "#download" }, ], }, { title: "Downloads", links: [ { label: "Apple Silicon", href: findAsset("macos", "macos-arm64-dmg"), external: true }, { label: "Intel Mac", href: findAsset("macos", "macos-x64-dmg"), external: true }, { label: "Windows Installer", href: findAsset("windows", "windows-universal-installer"), external: true }, { label: "Linux x64 AppImage", href: findAsset("linux", "linux-x64-appimage"), external: true }, ], }, { title: "Company", links: [ { label: "Website", href: WEBSITE_URL, external: true }, { label: "Contact", href: `mailto:${CONTACT_EMAIL}`, external: true }, { label: "Download Center", href: "#download" }, ], }, ]; export function Footer() { const year = new Date().getFullYear(); return ( ); }