import { Block } from 'payload'

export const PageHeaderBlock: Block = {
  slug: 'pageHeader',
  labels: {
    singular: {
      de: 'Seitenüberschrift',
    },
    plural: {
      de: 'Seitenüberschriften',
    },
  },
  fields: [
    {
      name: 'title',
      type: 'text',
      required: true,
      label: {
        de: 'Titel',
      },
    },
    {
      name: 'description',
      type: 'textarea',
      required: true,
      label: {
        de: 'Beschreibung',
      },
    },
    {
      name: 'image',
      type: 'upload',
      relationTo: 'media',
      label: {
        de: 'Bild',
      },
    },
  ],
}
