import { Block } from 'payload';

export const SplitHeading: Block = {
  slug: 'splitHeading',
  interfaceName: 'SplitHeadingBlock',
  fields: [
    {
      name: 'title',
      type: 'text',
      required: true,
    },
    {
      name: 'id',
      type: 'text',
    },
    {
      name: 'level',
      type: 'select',
      options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
      defaultValue: 'h2',
    },
  ],
};
