import type { Block } from 'payload'

export const ContactFormBlock: Block = {
  slug: 'contact-form-block',
  labels: {
    singular: 'Kontaktformular',
    plural: 'Kontaktformulare',
  },
  fields: [
    {
      name: 'headline',
      type: 'text',
      defaultValue: 'Kontakt',
      label: 'Überschrift',
      localized: true,
    },
    {
      name: 'description',
      type: 'textarea',
      label: 'Beschreibung',
      localized: true,
    },
    {
      name: 'recipientEmail',
      type: 'email',
      defaultValue: 'info@porwoll.de',
      label: 'Empfänger E-Mail',
    },
    {
      name: 'showPhone',
      type: 'checkbox',
      defaultValue: true,
      label: 'Telefon anzeigen',
    },
    {
      name: 'showAddress',
      type: 'checkbox',
      defaultValue: true,
      label: 'Adresse anzeigen',
    },
    {
      name: 'showSocials',
      type: 'checkbox',
      defaultValue: true,
      label: 'Social Media anzeigen',
    },
  ],
}
