"use client"; import React from "react"; import { withTrack, TrackingVerb } from "@514labs/event-capture/withTrack"; import Link from "next/link"; export { Nav } from "../components/base-nav"; type PropsWithoutRef

= P extends any ? "ref" extends keyof P ? Pick> : P : P; export type ComponentPropsWithoutRef = PropsWithoutRef>; type PrimitiveLinkProps = ComponentPropsWithoutRef & { children: React.ReactNode; }; export const TrackLink = withTrack({ Component: Link, action: TrackingVerb.clicked, injectProps: (onClick) => ({ onClick }), });