import { Block } from 'payload'

export const HorizontalRuleBlock: Block = {
  slug: 'horizontalRule',
  labels: {
    singular: {
      de: 'Trennlinie',
    },
    plural: {
      de: 'Trennlinien',
    },
  },
  fields: [
    {
      name: 'color',
      type: 'select',
      label: {
        de: 'Farbe',
      },
      required: true,
      defaultValue: 'base',
      options: [
        { label: 'Grundfarbe', value: 'base' },
        { label: 'Abstufung 1', value: 'shade1' },
        { label: 'Abstufung 2', value: 'shade2' },
        { label: 'Abstufung 3', value: 'shade3' },
        { label: 'Kontrastfarbe', value: 'contrast' },
        { label: 'Kontrast Abstufung 1', value: 'contrastShade1' },
      ],
    },
  ],
}
