Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

702 B
Raw Blame
"use client";

import { track } from "@vercel/analytics";
import { ArrowUpRightIcon } from "lucide-react";
import Link from "next/link";
import { analyticsEvents } from "@/lib/analytics/events";

export const IntegrationDocsLink = ({
  href,
  integration,
  type,
}: {
  href: string;
  integration: string;
  type: string;
}) => (
  <Link
    className="inline-flex w-fit items-center gap-1 text-gray-900 text-sm transition-colors hover:text-gray-1000"
    href={href}
    onClick={() => track(analyticsEvents.integrationDocsOpened, { integration, type })}
    prefetch={href.startsWith("/")}
  >
    Read the full {type.toLowerCase()} docs
    <ArrowUpRightIcon className="size-3.5" />
  </Link>
);