import { Block } from 'payload';
import { lexicalEditor } from '@payloadcms/richtext-lexical';

export const HighlightBox: Block = {
  slug: 'highlightBox',
  fields: [
    {
      name: 'type',
      type: 'select',
      options: ['info', 'warning', 'success', 'error', 'neutral'],
      defaultValue: 'neutral',
    },
    {
      name: 'content',
      type: 'richText',
      editor: lexicalEditor({}),
      required: true,
    },
  ],
};
