import { Block } from 'payload';

export const ManifestoGrid: Block = {
    slug: 'manifestoGrid',
    interfaceName: 'ManifestoGridBlock',
    fields: [
        {
            name: 'title',
            type: 'text',
            required: false,
        },
        {
            name: 'subtitle',
            type: 'text',
            required: false,
        },
        {
            name: 'tagline',
            type: 'textarea',
            required: false,
        },
        {
            name: 'items',
            type: 'array',
            required: true,
            minRows: 1,
            fields: [
                {
                    name: 'title',
                    type: 'text',
                    required: true,
                },
                {
                    name: 'description',
                    type: 'textarea',
                    required: true,
                },
            ],
        },
    ],
};
