import { Tab } from "payload";

export const hero: Tab = {
  name: 'hero',
  interfaceName: 'aboutUsHero',
  label: 'Hero',
  fields: [
    {
      name: 'title',
      type: 'text',
      localized: true,
      label: 'Title',
      required: true,
    },
    {
      name: 'subtitle',
      type: 'text',
      localized: true,
      label: 'Subtitle',
      required: true,
    },
    {
      name: 'bg',
      type: 'upload',
      relationTo: 'media',
      label: 'Background',
      required: true,
    },
  ]
}