'use client'; import { FaApple, FaGooglePlay } from "react-icons/fa6"; import { Button } from "@repo/ui/components/button"; type StoreLink = { platform: "apple" | "google"; /** Live store URL, or `null` to render a disabled "Coming Soon" button. */ href: string | null; }; type StoreButtonsProps = { links: StoreLink[]; extraLinks?: { href: string; label: string }[]; }; const platformConfig = { apple: { icon: FaApple, label: "App Store" }, google: { icon: FaGooglePlay, label: "Google Play" }, } as const; export function StoreButtons({ links, extraLinks }: StoreButtonsProps) { return (
{links.map(({ platform, href }) => { const { icon: Icon, label } = platformConfig[platform]; if (href === null) { return ( ); } return ( ); })} {extraLinks?.map(({ href, label }) => ( ))}
); } // Pre-configured components for use in MDX blog posts export function VeganIqStoreButtons() { return ( ); } export function SuchoiceStoreButtons() { return ( ); } export function SuchMoonLaunchStoreButtons() { return ( ); } export function WownerogueLinks() { // Wownerogue is a browser game, not a store app: link the two live instances + source. return ( ); } export function BauhausEchoStoreButtons() { return ( ); }