--- import { Tabs, TabItem } from "@astrojs/starlight/components"; import { Card, CardGrid } from "@astrojs/starlight/components"; import { LinkButton } from "@astrojs/starlight/components"; import { Badge } from "@astrojs/starlight/components"; import QRCode from "./QRCode.astro"; import { downloadLinks, requirements } from "../config"; interface Props { showQR?: boolean; } const { showQR = false } = Astro.props; const hasLink = (link: string | undefined) => link && link.trim() !== ""; --- { hasLink(downloadLinks.android.playStore) && (

Get on Play Store

{showQR && (

)}
) } { hasLink(downloadLinks.android.obtainium) && (

Get on Obtainium

{showQR && (

)}
) } { hasLink(downloadLinks.android.releases) && (

Download APK

{showQR && (

)}
) }

Requirements: {requirements.android}

{ hasLink(downloadLinks.ios.appStore) && (

Download on App Store

{showQR && (

)}
) } { hasLink(downloadLinks.ios.testFlight) && (

Join TestFlight

{showQR && (

)}
) }

Requirements: {requirements.ios}