import type { CollectionConfig } from 'payload' import { postsSlug } from '../shared.js' export const Posts: CollectionConfig = { slug: postsSlug, admin: { useAsTitle: 'title', }, versions: { drafts: true, }, fields: [ { name: 'title', label: { en: 'Title', es: 'Título', de: 'Titel' }, type: 'text', required: true, }, ], }