import { mediaFactory } from "../__factories__/media.factory.js";
import type { Media } from "../entities/models/media.js";

/**
 * Realistic media seed for dev mode + storybook stories.
 *
 * Built from `mediaFactory` so factory defaults take care of boring fields
 * and we only override what makes the data look like a real media library.
 *
 * Lazily produced so importing this module is side-effect-free — the
 * factory's sequence counter only advances when a binder calls
 * `buildDevMedia()`.
 */
export function buildDevMedia(): Media[] {
  return [
    mediaFactory.build({
      id: "placeholder-1",
      alt: "Hero background image",
      url: "/dev/placeholder-1.jpg",
      filename: "placeholder-1.jpg",
      mimeType: "image/jpeg",
    }),
    mediaFactory.build({
      id: "placeholder-2",
      alt: "Team photo",
      url: "/dev/placeholder-2.jpg",
      filename: "placeholder-2.jpg",
      mimeType: "image/jpeg",
    }),
    mediaFactory.build({
      id: "placeholder-3",
      alt: "Product screenshot",
      url: "/dev/placeholder-3.png",
      filename: "placeholder-3.png",
      mimeType: "image/png",
    }),
  ];
}
