import { Tab } from 'payload'

export const bookTesla: Tab = {
  name: 'bookTesla',
  interfaceName: 'bookTeslaSection',
  label: 'Book Tesla',
  fields: [
    {
      name: 'title',
      type: 'text',
      localized: true,
      label: 'Title',
      required: true,
    },
    {
      name: 'subtitle',
      type: 'text',
      localized: true,
      label: 'Subtitle',
      required: true,
    },
    {
      name: 'contact',
      type: 'group',
      label: 'Contact',
      required: true,
      fields: [
        {
          name: 'title',
          type: 'text',
          localized: true,
          label: 'Contact Title',
          required: true,
        },
        {
          name: 'subtitle',
          type: 'text',
          localized: true,
          label: 'Contact Subtitle',
          required: true,
        },
        {
          name: 'image',
          type: 'upload',
          relationTo: 'media',
          label: 'Contact Image',
          required: true,
        },
      ],
    },
  ],
}
