import { GlobalConfig } from 'payload'
import { faqSection } from './tabs/faq'
import { whyChooseUs } from './tabs/whyChooseUs'
import { requirements } from './tabs/requirements'
import { hero } from './tabs/hero'
import { newsSection } from './tabs/news'
import { reviewsSection } from './tabs/reviews'
import { bookTesla } from './tabs/bookTesla'

const Home: GlobalConfig = {
  slug: 'home',
  fields: [
    {
      type: 'tabs',
      tabs: [hero, whyChooseUs, requirements, bookTesla, faqSection, newsSection, reviewsSection],
    },
  ],
  admin: {
    group: 'Pages',
  },
  access: {
    read: () => true,
  },
}

export { Home }