import type { Block } from 'payload'

export const ToolStackBlock: Block = {
  slug: 'toolStack',
  labels: { singular: 'Tool Stack', plural: 'Tool Stacks' },
  fields: [
    {
      name: 'heading',
      type: 'text',
      label: 'Heading',
      defaultValue: 'Tool stack',
    },
    {
      name: 'tools',
      type: 'array',
      label: 'Tools',
      minRows: 1,
      fields: [{ name: 'name', type: 'text', label: 'Tool name', required: true }],
    },
  ],
}
