import type { Block } from 'payload'

export const StatsStripBlock: Block = {
  slug: 'statsStrip',
  labels: { singular: 'Stats Strip', plural: 'Stats Strips' },
  fields: [
    {
      name: 'stats',
      type: 'array',
      label: 'Stats',
      minRows: 1,
      maxRows: 6,
      fields: [
        { name: 'value', type: 'text', label: 'Value', required: true },
        { name: 'label', type: 'text', label: 'Label', required: true },
      ],
    },
  ],
}
