"use client"; import posthog from "posthog-js"; export function DownloadButton({ size = "default", location = "hero", }: { size?: "default" | "sm"; location?: string; }) { const isSmall = size === "sm"; return ( posthog.capture("cmuxterm_download_clicked", { location })} className={`inline-flex items-center whitespace-nowrap rounded-full font-medium bg-foreground hover:opacity-85 transition-opacity ${ isSmall ? "gap-2 px-4 py-1.5 text-xs" : "gap-2.5 px-5 py-2.5 text-[15px]" }`} style={{ color: "var(--background)", textDecoration: "none" }} > Download for Mac ); }