// blocks/RawHTMLBlock.ts
import type { Block } from 'payload'

export const RawHTMLBlock: Block = {
  slug: 'rawHtml', // The ID for this block
  interfaceName: 'RawHTMLBlock',
  fields: [
    {
      name: 'htmlContent',
      type: 'code',
      label: 'Raw HTML',
      required: true,
      admin: {
        language: 'html', // Gives syntax highlighting for HTML
        description: 'Paste your raw HTML, iframes, or embed scripts here.',
      },
    },
  ],
}