import type { Block } from 'payload' export const ContactBlock: Block = { slug: 'contact', labels: { singular: 'Contact', plural: 'Contacts' }, fields: [ { name: 'heading', type: 'text', label: 'Heading', defaultValue: "Let's work together", }, { name: 'subtext', type: 'textarea', label: 'Subtext', }, { name: 'email', type: 'text', label: 'Email address', }, { name: 'links', type: 'array', label: 'Links', maxRows: 4, fields: [ { name: 'label', type: 'text', label: 'Label', required: true }, { name: 'sublabel', type: 'text', label: 'Sub label' }, { name: 'url', type: 'text', label: 'URL', required: true }, { name: 'icon', type: 'text', label: 'Tabler icon (e.g. ti-brand-github)' }, { name: 'newTab', type: 'checkbox', label: 'Open in new tab', defaultValue: true }, ], }, ], }