import { Block } from 'payload';

export const PDFDownload: Block = {
  slug: 'pdfDownload',
  labels: {
    singular: 'PDF Download',
    plural: 'PDF Downloads',
  },
  admin: {},
  fields: [
    {
      name: 'label',
      type: 'text',
      label: 'Button Beschriftung',
      required: true,
      localized: true,
      defaultValue: 'Als PDF herunterladen',
    },
    {
      name: 'style',
      type: 'select',
      defaultValue: 'primary',
      options: [
        { label: 'Primary', value: 'primary' },
        { label: 'Secondary', value: 'secondary' },
        { label: 'Outline', value: 'outline' },
      ],
    },
  ],
};
