import { GlobalConfig } from 'payload'

const Blog: GlobalConfig = {
  slug: 'blog',
  fields: [
    {
      name: 'title',
      type: 'text',
      localized: true,
      label: 'Title',
      required: true,
    },
    {
      name: 'bg',
      type: 'upload',
      relationTo: 'media',
      label: 'bg Image',
      required: true,
    },
  ],
  admin: {
    group: 'Pages',
  },
  access: {
    read: () => true,
  },
}

export { Blog }
