import { Block } from 'payload'

export const GroupEventsBlock: Block = {
  slug: 'groupEvents',
  labels: {
    singular: {
      de: 'Gruppen-Veranstaltungen',
    },
    plural: {
      de: 'Gruppen-Veranstaltungen',
    },
  },
  fields: [
    {
      name: 'group',
      type: 'relationship',
      relationTo: 'group',
      required: true,
      label: {
        de: 'Gruppe',
      },
    },
  ],
}
