import type { GlobalConfig } from "payload";

export const About: GlobalConfig = {
  slug: "about",
  access: { read: () => true },
  fields: [
    { name: "intro", type: "richText" },
    { name: "makerMindset", type: "richText" },
    { name: "soundtrack", type: "richText" },
    {
      name: "gearRefs",
      type: "relationship",
      relationTo: "gear",
      hasMany: true,
    },
    {
      name: "timeline",
      type: "array",
      fields: [
        { name: "year", type: "text", required: true },
        { name: "title", type: "text", required: true },
        { name: "note", type: "textarea" },
      ],
    },
    { name: "portrait", type: "upload", relationTo: "media" },
  ],
};
