import type { Block } from 'payload'
//import CustomLabel from '@/components/admin/CustomLabel';


const SectionTitleBlock: Block = {
  slug: 'sectiontitle',
  imageURL: '/admin/blocks/cta-sections.png',
  labels: {
    singular: 'Section Title',
    plural: 'Section Title',
  },

  admin: {
    disableBlockName: true,
    components: {
      Label: '@/payload/fields/CustomBlockLabel',
    },
  },
  fields: [    
    {
      name: 'title',
      type: 'text',
    },
    {
      name: 'paragraph',
      type: 'text',
    },
    {
      name: 'image',
      type: 'upload',
      relationTo: 'media',
    },],
}

export default SectionTitleBlock;