import Link from "next/link";

const TABS = [
  { href: "/iv-manage-84x2/seo", label: "Product SEO" },
  { href: "/iv-manage-84x2/seo/categories", label: "Category SEO" },
  { href: "/iv-manage-84x2/seo/pages", label: "Page SEO" },
  { href: "/iv-manage-84x2/seo/meta-titles", label: "Meta Titles" },
  { href: "/iv-manage-84x2/seo/meta-descriptions", label: "Meta Descriptions" },
  { href: "/iv-manage-84x2/seo/sitemap", label: "Sitemap" },
  { href: "/iv-manage-84x2/seo/redirects", label: "URL Management" },
];

export default function SeoTabs({ 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>
  );
}
