import Link from "next/link";
import { cn } from "cn";
import { ChevronForwardIcon } from "@/components/icons";
import { buttonVariants } from "@/components/ui/button";

/** "See All ›" link shown next to a section heading. */
export function SeeAllLink({ href, label }: { href: string; label: string }) {
  return (
    <Link href={href} className={cn(buttonVariants({ variant: "text", size: "text" }), "max-lg:text-xs")}>
      {label}
      <ChevronForwardIcon data-icon="inline-end" className="rtl:-scale-x-100" />
    </Link>
  );
}
