import type { GlobalConfig } from "payload"; import { isAdmin } from "@/access"; export const BookingSettings: GlobalConfig = { slug: "booking-settings", label: "Buchungseinstellungen", admin: { description: "Adresse für Vor-Ort-Termine (wird für den Maps-Link verwendet).", group: "Seiteninhalte", }, access: { read: () => true, update: isAdmin, }, fields: [ { name: "locationName", type: "text", label: "Name des Ortes", defaultValue: "Anouma" }, { name: "street", type: "text", label: "Straße und Hausnummer" }, { type: "row", fields: [ { name: "postalCode", type: "text", label: "PLZ", admin: { width: "34%" } }, { name: "city", type: "text", label: "Ort", admin: { width: "33%" } }, { name: "region", type: "text", label: "Region/Bundesland (optional)", admin: { width: "33%" } }, ], }, { name: "country", type: "text", label: "Land (optional)", admin: { description: "Für strukturierte Daten, z. B. „Deutschland“." } }, ], };