All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🧪 QA (push) Successful in 2m24s
Build & Deploy / 🏗️ Build (push) Successful in 4m3s
Build & Deploy / 🚀 Deploy (push) Successful in 17s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 9m3s
Build & Deploy / 🔔 Notify (push) Successful in 2s
31 lines
643 B
TypeScript
31 lines
643 B
TypeScript
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' },
|
|
],
|
|
},
|
|
],
|
|
};
|