"use client"; import { ArrowRight, ExternalLink } from "lucide-react"; declare global { interface Window { rybbit?: { event?: (name: string, properties?: Record) => void; }; } } type TrackedPublicAuditLinkProps = { href: string; label: string; domain: string; }; export function TrackedPublicAuditLink({ href, label, domain, }: TrackedPublicAuditLinkProps) { const isInternal = href.startsWith("/"); return ( { window.rybbit?.event?.("audit_cta_click", { domain, target: isInternal ? "cta" : "outbound_cta", }); if (!isInternal) { window.rybbit?.event?.("audit_website_link_click", { domain, href, }); } }} > {label} {isInternal ? ( ) : ( )} ); }