import Link from "next/link";
import { cn } from "@/lib/cn";

export function AdminActionLink({
  href,
  children = "View",
  className,
}: {
  href: string;
  children?: string;
  className?: string;
}) {
  return (
    <Link
      href={href}
      className={cn(
        "inline-flex items-center rounded-[10px] border border-line/80 bg-surface px-2.5 py-1 text-[0.75rem] font-semibold text-primary transition hover:border-primary/40 hover:bg-primary/[0.02]",
        className,
      )}
    >
      {children}
    </Link>
  );
}
