import type { GlobalConfig } from "payload";

export const Contact: GlobalConfig = {
  slug: "contact",
  access: { read: () => true },
  fields: [
    {
      name: "availabilityBadge",
      type: "text",
      defaultValue: "Accepting new inquiries",
    },
    { name: "timezoneLabel", type: "text", defaultValue: "America/Chicago" },
    { name: "directEmail", type: "email" },
    {
      name: "socialLinks",
      type: "array",
      fields: [
        { name: "label", type: "text", required: true },
        { name: "href", type: "text", required: true },
        { name: "icon", type: "text" },
      ],
    },
    {
      name: "newsletterEnabled",
      type: "checkbox",
      defaultValue: false,
      admin: {
        description:
          "Enable the newsletter subscribe UI. Keep false until Mautic is deployed.",
      },
    },
  ],
};
