"use client"; import { useTranslations } from "next-intl"; import posthog from "posthog-js"; export function GitHubButton({ location = "hero" }: { location?: string }) { const t = useTranslations("common"); return ( posthog.capture("cmuxterm_github_clicked", { location })} className="inline-flex items-center whitespace-nowrap gap-2 rounded-full border border-border px-5 py-2.5 text-[15px] font-medium text-foreground hover:bg-code-bg transition-colors" > {t("viewOnGitHub")} ); }