import { prisma } from "@/lib/prisma"; import { BackLink } from "@/components/back-link"; import { AdminImageField } from "@/components/admin-image-field"; import { AdminVideoField } from "@/components/admin-video-field"; import { CONTENT_REGISTRY, type ContentFieldDef } from "@/lib/content-registry"; import { updateSiteContentAction } from "../actions"; import { getLocale } from "@/i18n/locale"; import { getDictionary } from "@/i18n/get-dictionary"; import type { Dictionary } from "@/i18n/dictionary-type"; import type { Locale } from "@/i18n/config"; const ROWS_BY_TYPE: Record = { text: 1, textarea: 3, "list-simple": 4, "list-titled": 5, "list-numbered": 6, "richtext-sections": 14, // Bild-/Video-Felder haben kein