import type { Block } from 'payload'

export const DividerBlock: Block = {
  slug: 'divider-block',
  labels: {
    singular: 'Trenner',
    plural: 'Trenner',
  },
  fields: [
    {
      name: 'style',
      type: 'select',
      defaultValue: 'space',
      label: 'Stil',
      options: [
        { label: 'Linie', value: 'line' },
        { label: 'Abstand', value: 'space' },
        { label: 'Punkte', value: 'dots' },
      ],
    },
    {
      name: 'spacing',
      type: 'select',
      defaultValue: 'medium',
      label: 'Abstand',
      options: [
        { label: 'Klein', value: 'small' },
        { label: 'Mittel', value: 'medium' },
        { label: 'Groß', value: 'large' },
      ],
    },
  ],
}
