import Link from "next/link";

const TABS = [
  { href: "/iv-manage-84x2/custom-orders", label: "Customization Request" },
  { href: "/iv-manage-84x2/custom-orders/name-engraving", label: "Name Engraving" },
  { href: "/iv-manage-84x2/custom-orders/laser-engraving", label: "Laser Engraving" },
  { href: "/iv-manage-84x2/custom-orders/3d-printing", label: "3D Printing" },
  { href: "/iv-manage-84x2/custom-orders/images", label: "Customer Uploaded Images" },
  { href: "/iv-manage-84x2/custom-orders/design-approval", label: "Design Approval" },
  { href: "/iv-manage-84x2/custom-orders/production", label: "Production" },
  { href: "/iv-manage-84x2/custom-orders/ready-to-dispatch", label: "Ready to Dispatch" },
];

export default function CustomOrdersTabs({ active }: { active: string }) {
  return (
    <div className="mb-6 flex flex-wrap gap-2 border-b border-rose-100 pb-4">
      {TABS.map((t) => (
        <Link
          key={t.href}
          href={t.href}
          className={`rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${
            active === t.href ? "bg-rose-700 text-white" : "bg-rose-50 text-stone-600 hover:bg-rose-100"
          }`}
        >
          {t.label}
        </Link>
      ))}
    </div>
  );
}
