import { Block } from 'payload';

export const StickyNarrative: Block = {
  slug: 'stickyNarrative',
  fields: [
    {
      name: 'title',
      label: 'Main Heading',
      type: 'text',
      required: true,
    },
    {
      name: 'items',
      type: 'array',
      required: true,
      minRows: 1,
      fields: [
        {
          name: 'title',
          type: 'text',
          required: true,
        },
        {
          name: 'content',
          type: 'textarea',
          required: true,
        },
      ],
    },
  ],
};
