import { Block } from 'payload'

export const CollapsibleMapWithTextBlock: Block = {
  slug: 'collapsibleMapWithText',
  labels: {
    singular: {
      de: 'Karte mit Text',
    },
    plural: {
      de: 'Karte mit Text',
    },
  },
  dbName: 'collaps_map',
  fields: [
    {
      name: 'title',
      type: 'text',
      required: true,
      label: {
        de: 'Titel',
      },
    },
    {
      name: 'text',
      type: 'textarea',
      required: true,
      label: {
        de: 'Text',
      },
    },
    {
      name: 'content',
      type: 'richText',
      required: true,
      label: {
        de: 'Aufklappbarer Inhalt',
      },
    },
    {
      name: 'backgroundColor',
      type: 'select',
      label: {
        de: 'Hintergrundfarbe',
      },
      options: [
        { label: 'Standard', value: 'default' },
        { label: 'Soft', value: 'soft' },
        { label: 'Off-White', value: 'off-white' },
      ],
      defaultValue: 'default',
    },
  ],
}
