import { headerFactory } from "../__factories__/header.factory.js";
import { navItemFactory } from "../__factories__/nav-item.factory.js";
import type { Header } from "../entities/models/header.js";

/**
 * Realistic navigation seed for dev mode + storybook stories.
 *
 * Built from `headerFactory` and `navItemFactory` so factory defaults take
 * care of boring fields and we only override what makes the nav look like a
 * real site header.
 *
 * Lazily produced so importing this module is side-effect-free — the
 * factory's sequence counter only advances when a binder calls
 * `buildDevHeader()`.
 */
export function buildDevHeader(): Header {
  return headerFactory.build({
    logoId: "logo-main",
    items: [
      navItemFactory.build({ label: "Home", href: "/", external: false }),
      navItemFactory.build({ label: "Blog", href: "/blog", external: false }),
      navItemFactory.build({ label: "About", href: "/about", external: false }),
      navItemFactory.build({ label: "Pricing", href: "/pricing", external: false }),
    ],
  });
}
