/** * Official App Store + Google Play badge anchors. * * Setup steps: * 1. Download official SVGs (use the /show/ path which returns clean SVG): * https://www.svgrepo.com/show/303128/download-on-the-app-store-apple-logo.svg * https://www.svgrepo.com/show/303139/google-play-badge-logo.svg * 2. Save to public/images/app-store-badge.svg + public/images/google-play-badge.svg. * 3. Add to lib/content.ts: * export const app = { * googlePlay: "https://play.google.com/store/apps/details?id=...", * appStore: "https://apps.apple.com/ae/app/.../id...", * }; * * next/image blocks raw SVG by default in Next 16 — keep plain . */ import { app } from "@/lib/content"; type Props = { store: "appstore" | "googleplay"; small?: boolean; }; export function AppBadge({ store, small }: Props) { const isApple = store === "appstore"; const href = isApple ? app.appStore : app.googlePlay; const src = isApple ? "/images/app-store-badge.svg" : "/images/google-play-badge.svg"; const alt = isApple ? "Download on the App Store" : "Get it on Google Play"; const label = isApple ? "Download on the App Store" : "Get it on Google Play"; const width = small ? 132 : 160; return ( {/* eslint-disable-next-line @next/next/no-img-element */} {alt} ); } /** Both badges in a vertical stack. Use in footer Legal column. */ export function AppBadgeStack({ small }: { small?: boolean }) { return (
); }