import type { Block } from 'payload'

export const TextBlock: Block = {
  slug: 'text-block',
  labels: {
    singular: 'Text',
    plural: 'Texte',
  },
  fields: [
    {
      name: 'content',
      type: 'richText',
      required: true,
      label: 'Inhalt',
      localized: true,
    },
    {
      name: 'width',
      type: 'select',
      defaultValue: 'medium',
      label: 'Breite',
      options: [
        { label: 'Schmal', value: 'narrow' },
        { label: 'Mittel', value: 'medium' },
        { label: 'Volle Breite', value: 'full' },
      ],
    },
  ],
}
