import type { CollectionConfig } from 'payload' import { buildSlugField } from '@intecion/ipal-kit' export const Pages: CollectionConfig = { slug: 'pages', admin: { useAsTitle: 'title', }, access: { read: () => true, }, fields: [ { name: 'title', type: 'text', localized: true, required: true, }, buildSlugField(), { name: 'layout', type: 'blocks', minRows: 1, blocks: [ { slug: 'TextSection', fields: [ { name: 'text', type: 'text', } ] } ] } ], }