import { Block } from 'payload'

export const ContactPersonBlock: Block = {
  slug: 'contactPersonBlock',
  labels: {
    singular: {
      de: 'Ansprechperson',
    },
    plural: {
      de: 'Ansprechpersonen',
    },
  },
  fields: [
    {
      name: 'contact',
      type: 'relationship',
      relationTo: 'contactPerson',
      required: true,
      label: {
        de: 'Ansprechperson',
      },
    },
  ],
}