import type { GlobalConfig } from "payload";

export const siteSettings: GlobalConfig = {
  slug: "site-settings",
  custom: {
    retention: {
      purgeSchedule: "monthly",
      postDeletion: {
        duration: "P90D",
        trigger: "after-deletion",
        action: "hard-delete",
      },
    },
  },
  admin: {
    group: "Settings",
  },
  fields: [
    {
      name: "siteName",
      type: "text",
      required: true,
      defaultValue: "My App",
    },
    {
      name: "siteDescription",
      type: "textarea",
    },
  ],
};
