import Link from "next/link";

const links = [
  ["Home", "/"],
  ["About", "/about"],
  ["Brands", "/brands"],
  ["Products", "/products"],
  ["Blog", "/blog"],
  ["Contact", "/contact"],
];

export default function MarketingHeader({ active = "/" }: { active?: string }) {
  return (
    <header className="mk-nav">
      <div className="mk-shell mk-nav-in">
        <Link href="/" className="mk-logo" aria-label="Awafi Drugstore">
          {/* eslint-disable-next-line @next/next/no-img-element */}
          <img src="/images/awafi-logo.png" alt="Awafi Drugstore" />
        </Link>
        <nav>
          <ul className="mk-navlinks">
            {links.map(([label, href]) => (
              <li key={href}>
                <Link href={href} className={active === href ? "active" : ""}>{label}</Link>
              </li>
            ))}
          </ul>
        </nav>
        <Link href="/portal" className="mk-cta"><span className="dot" /> B2B Portal</Link>
      </div>
    </header>
  );
}
