import { GlobalConfig } from 'payload'
import { hero } from './tabs/hero'
import { benefits } from './tabs/benefits'
import { audience } from './tabs/audience'
import { currentPrice } from './tabs/currentPrice'
import { rentalConditionals } from './tabs/rentalConditionals'


const AboutUs: GlobalConfig = {
  slug: 'about-us',
  fields: [
    {
      type: 'tabs',
      tabs: [hero, benefits, audience, currentPrice, rentalConditionals],
    },
  ],
  admin: {
    group: 'Pages',
  },
  access: {
    read: () => true,
  },
}

export { AboutUs }
