"use client";

import { ArrowUpRight } from "lucide-react";
import Link from "next/link";

/** Pill link from an Asset Analytics panel to the full report, pre-filtered to this ISIN. */
export function OpenReportLink({ href, label, title }: { href: string; label: string; title: string }) {
  return (
    <Link
      href={href}
      title={title}
      className="inline-flex h-8 items-center gap-1 rounded-full border border-border/70 bg-background px-3 font-medium text-muted-foreground text-xs transition-colors hover:text-foreground"
    >
      {label}
      <ArrowUpRight className="size-3.5" />
    </Link>
  );
}
