import { defineFactory } from "@repo/core-testing/factory";
import type { Page } from "../entities/models/page.js";

export const pageFactory = defineFactory<Page>(({ sequence }) => ({
  id: `page-${sequence}`,
  title: `Page ${sequence}`,
  slug: `page-${sequence}`,
  hero: {
    heading: `Hero ${sequence}`,
  },
  layout: [],
  status: "draft",
  publishedAt: null,
  seo: {
    title: `Page ${sequence} | Site`,
  },
  createdAt: new Date("2026-01-01T00:00:00Z"),
  updatedAt: new Date("2026-01-01T00:00:00Z"),
}));
