import { Block } from 'payload';

export const TechnicalGrid: Block = {
  slug: 'technicalGrid',
  fields: [
    {
      name: 'title',
      label: 'Main Heading',
      type: 'text',
    },
    {
      name: 'items',
      type: 'array',
      required: true,
      minRows: 1,
      fields: [
        {
          name: 'label',
          type: 'text',
          required: true,
        },
        {
          name: 'value',
          type: 'text',
          required: true,
        },
      ],
    },
  ],
};
