import { Block } from 'payload'

export const ParagraphBlock: Block = {
  slug: 'text',
  labels: {
    singular: {
      de: 'Text'
    },
    plural: {
      de: 'Text'
    }
  },
  fields: [
    {
      name: 'content',
      type: 'richText',
      required: true
    },
    {
      name: 'width',
      label: {
        de: "Breite"
      },
      type: 'radio',
      options: ["1/2", "3/4"],
      required: true,
      defaultValue: "1/2"
    }
  ]
}