import { Block } from 'payload'; import { lexicalEditor } from '@payloadcms/richtext-lexical'; export const Callout: Block = { slug: 'callout', fields: [ { name: 'type', type: 'select', options: ['info', 'warning', 'important', 'tip', 'caution'], defaultValue: 'info', }, { name: 'content', type: 'richText', editor: lexicalEditor({}), required: true, }, ], };